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 UnitbindNativeAd(NativeAdViewBinder viewBinder)Bind view with native ad's content. abstract UnitsetNativeAdEventListener(NativeAdEventListener eventListener)Sets an NativeAdEventListener. abstract UnitloadImages()Asynchronously loads ad's images. abstract UnitaddImageLoadingListener(NativeAdImageLoadingListener listener)Adds listener for receiving notifications about images loading progress. abstract UnitremoveImageLoadingListener(NativeAdImageLoadingListener listener)Removes listener, so it's no longer notified about images loading progress. abstract NativeAdAssetsgetAdAssets()Returns ad assets. abstract NativeAdTypegetAdType()Returns native ad type ResponseNativeType. abstract StringgetInfo()Information field for ResponseNativeType. abstract <Error class: unknown class>getAdAttributes()Information field for ad additional attributes -
-
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.
-
getAdAttributes
abstract <Error class: unknown class> getAdAttributes()
Information field for ad additional attributes
-
-
-
-