public abstract class BaseNativeAd
extends java.lang.Object
MoPubAdRenderer
that supports the format.| Modifier and Type | Class and Description |
|---|---|
static interface |
BaseNativeAd.NativeEventListener |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseNativeAd() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClickTracker(java.lang.String url) |
protected void |
addClickTrackers(java.lang.Object clickTrackers) |
void |
addImpressionTracker(java.lang.String url) |
protected void |
addImpressionTrackers(java.lang.Object impressionTrackers) |
abstract void |
clear(android.view.View view)
Your
BaseNativeAd subclass should implement this method if the network requires the developer
to reset or clear state of the native ad after it goes off screen and before it is rendered
again. |
abstract void |
destroy()
Your
BaseNativeAd subclass should implement this method if the network requires the developer
to destroy or cleanup their native ad when they are permanently finished with it. |
protected void |
notifyAdClicked()
Notifies the SDK that the user has clicked the ad.
|
protected void |
notifyAdImpressed()
Notifies the SDK that the ad has been shown.
|
abstract void |
prepare(android.view.View view)
Your
BaseNativeAd subclass should implement this method if the network requires the developer
to prepare state for recording an impression or click before a view is rendered to screen. |
void |
setNativeEventListener(BaseNativeAd.NativeEventListener nativeEventListener) |
public abstract void prepare(android.view.View view)
BaseNativeAd subclass should implement this method if the network requires the developer
to prepare state for recording an impression or click before a view is rendered to screen.
This method is optional.public abstract void clear(android.view.View view)
BaseNativeAd subclass should implement this method if the network requires the developer
to reset or clear state of the native ad after it goes off screen and before it is rendered
again.
This method is optional.public abstract void destroy()
BaseNativeAd subclass should implement this method if the network requires the developer
to destroy or cleanup their native ad when they are permanently finished with it.
This method is optional.public void setNativeEventListener(BaseNativeAd.NativeEventListener nativeEventListener)
protected final void notifyAdImpressed()
protected final void notifyAdClicked()
protected final void addImpressionTrackers(java.lang.Object impressionTrackers)
throws java.lang.ClassCastException
java.lang.ClassCastExceptionprotected final void addClickTrackers(java.lang.Object clickTrackers)
throws java.lang.ClassCastException
java.lang.ClassCastExceptionpublic final void addImpressionTracker(java.lang.String url)
public final void addClickTracker(java.lang.String url)