| 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<String, View> clickableChildViews, Map<String, View> nonClickableChildViews) Native ad view container constructor. |
| Return type | Method name |
| void | setNativeAd(NativeAd nativeAd) Sets the native ad instance to be associated. |
| void | unregister() Deregisters a native ad instance. |
| constructor |
| public NativeAdMonitor(View containerView, Map<String, View> clickableChildViews, Map<String, View> nonClickableChildViews) |
| Native ad view container constructor. |
Parameters
| Parameter name | Parameter desc |
| containerView | Container view. Set this parameter to the root view of a native ad slot. |
| clickableChildViews | List of child views that can be tapped. |
| nonClickableChildViews | List of child views that cannot be tapped. |
| Method |
| public void setNativeAd(NativeAd nativeAd) |
| Sets the native ad instance to be associated. |
Parameters
| Parameter name | Parameter desc |
| nativeAd | Native ad instance. |
| Method |
| public void unregister() |
| Deregisters a native ad instance. |