public interface NativeGenericAd
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
NativeAdType . |
java.lang.String |
getInfo()
Information field for
NativeAdType.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 |
setAdEventListener(NativeAdEventListener eventListener)
Sets an
NativeAdEventListener . |
void |
shouldOpenLinksInApp(boolean shouldOpenLinksInApp)
Sets whether web links are opened by in-app browser or by third-party browsers.
|
void bindNativeAd(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 setAdEventListener(NativeAdEventListener eventListener)
NativeAdEventListener
.eventListener
- NativeAdEventListener
.void shouldOpenLinksInApp(boolean shouldOpenLinksInApp)
shouldOpenLinksInApp
- If set to true
, web links are opened by in-app browser,
otherwise by third-party browsers. Default param is false
.NativeAdAssets getAdAssets()
NativeAdType getAdType()
NativeAdType
.java.lang.String getInfo()
NativeAdType.IMAGE
advoid loadImages()
NativeAdLoaderConfiguration
.void addImageLoadingListener(NativeAdImageLoadingListener listener)
listener
- Image loading listener.void removeImageLoadingListener(NativeAdImageLoadingListener listener)
listener
- Image loading listener.