public interface NativeAd
NativeAdEventListener and
to define whether web links are opened by in-app browser or by third-party browsers.| Modifier and Type | Method and Description |
|---|---|
void |
addImageLoadingListener(NativeAdImageLoadingListener listener)
Adds listener for receiving notifications about images loading progress.
|
void |
bindNativeAd(NativeAdViewBinder viewBinder)
Bind view with native ad's content.
|
NativeAdAssets |
getAdAssets()
Returns ad assets.
|
NativeAdType |
getAdType()
Returns native ad type
ResponseNativeType. |
java.lang.String |
getInfo()
Information field for
ResponseNativeType.IMAGE ad |
void |
loadImages()
Asynchronously loads ad's images.
|
void |
removeImageLoadingListener(NativeAdImageLoadingListener listener)
Removes listener, so it's no longer notified about images loading progress.
|
void |
setNativeAdEventListener(NativeAdEventListener eventListener)
Sets an
NativeAdEventListener. |
void bindNativeAd(@NonNull
NativeAdViewBinder viewBinder)
throws NativeAdException
viewBinder - An NativeAdViewBinder object.NativeAdException - If attempt to bind ad to view without providing view for any of required assets.void setNativeAdEventListener(@Nullable
NativeAdEventListener eventListener)
NativeAdEventListener.eventListener - NativeAdEventListener.@NonNull NativeAdAssets getAdAssets()
@NonNull NativeAdType getAdType()
ResponseNativeType.@Nullable java.lang.String getInfo()
ResponseNativeType.IMAGE advoid loadImages()
NativeAdLoaderConfiguration.void addImageLoadingListener(@NonNull
NativeAdImageLoadingListener listener)
listener - Image loading listener.void removeImageLoadingListener(@NonNull
NativeAdImageLoadingListener listener)
listener - Image loading listener.