Class Info |
|---|
public final class NativeAdMonitor extends Object implements NativeMonitorListener, View.OnAttachStateChangeListener Native ad view container, where a native ad is associated with a common view. |
Constructor Name |
|---|
NativeAdMonitor(View containerView, Map Map<String, View> clickableChildViews, Map<String, View> nonClickableChildViews) Constructs a native ad view container. |
Qualifier and Type | Method Name and Description |
|---|---|
void | setNativeAd(NativeAd nativeAd) Sets the associated native ad instance. |
void | Unregisters a native ad instance. |
Constructor |
|---|
public NativeAdMonitor(View containerView, Map<String, View> clickableChildViews, Map<String, View> nonClickableChildViews) Constructs a native ad view container. |
Parameters
Name | Description |
|---|---|
containerView | Container view. Set this parameter to the root view of a native ad unit. |
clickableChildViews | List of child views that are clickable. |
nonClickableChildViews | List of child views that are not clickable. |
Method |
|---|
public void setNativeAd(NativeAd nativeAd) Sets the associated native ad instance. |
Parameters
Name | Description |
|---|---|
nativeAd | Native ad instance. |