Package com.yandex.mobile.ads.nativeads
Interface NativeAd
-
- All Implemented Interfaces:
@MainThread() public interface NativeAd
Interface allows to set NativeAdEventListener and to define whether web links are opened by in-app browser or by third-party browsers.
-
-
Method Summary
Modifier and Type Method Description abstract Unit
bindNativeAd(NativeAdViewBinder viewBinder)
Bind view with native ad's content. abstract Unit
setNativeAdEventListener(NativeAdEventListener eventListener)
Sets an NativeAdEventListener. abstract Unit
loadImages()
Asynchronously loads ad's images. abstract Unit
addImageLoadingListener(NativeAdImageLoadingListener listener)
Adds listener for receiving notifications about images loading progress. abstract Unit
removeImageLoadingListener(NativeAdImageLoadingListener listener)
Removes listener, so it's no longer notified about images loading progress. abstract NativeAdAssets
getAdAssets()
Returns ad assets. abstract NativeAdType
getAdType()
Returns native ad type ResponseNativeType. abstract String
getInfo()
Information field for ResponseNativeType. -
-
Method Detail
-
bindNativeAd
abstract Unit bindNativeAd(NativeAdViewBinder viewBinder)
Bind view with native ad's content.
- Parameters:
viewBinder
- An NativeAdViewBinder object.
-
setNativeAdEventListener
abstract Unit setNativeAdEventListener(NativeAdEventListener eventListener)
Sets an NativeAdEventListener.
- Parameters:
eventListener
- NativeAdEventListener.
-
loadImages
abstract Unit loadImages()
Asynchronously loads ad's images. Every loaded image is set to corresponding ImageView. Images are not persisted in memory and should be loaded each time ad is being bound. Typically, every bind call should be followed by loadImages call, if automatic image loading is disabled in NativeAdRequestConfiguration.
-
addImageLoadingListener
abstract Unit addImageLoadingListener(NativeAdImageLoadingListener listener)
Adds listener for receiving notifications about images loading progress.
- Parameters:
listener
- Image loading listener.
-
removeImageLoadingListener
abstract Unit removeImageLoadingListener(NativeAdImageLoadingListener listener)
Removes listener, so it's no longer notified about images loading progress.
- Parameters:
listener
- Image loading listener.
-
getAdAssets
abstract NativeAdAssets getAdAssets()
Returns ad assets.
-
getAdType
abstract NativeAdType getAdType()
Returns native ad type ResponseNativeType.
-
-
-
-