目录

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.

Public Constructor Summary

Constructor name
NativeAdMonitor(View containerView, Map<String, View> clickableChildViews, Map<String, View> nonClickableChildViews)
Native ad view container constructor.

Public Method Summary

Return typeMethod name
voidsetNativeAd(NativeAd nativeAd)
Sets the native ad instance to be associated.
voidunregister()
Deregisters a native ad instance.

Public Constructors

constructor
public NativeAdMonitor(View containerView, Map<String, View> clickableChildViews, Map<String, View> nonClickableChildViews)
Native ad view container constructor.

Parameters

Parameter nameParameter desc
containerViewContainer view. Set this parameter to the root view of a native ad slot.
clickableChildViewsList of child views that can be tapped.
nonClickableChildViewsList of child views that cannot be tapped.

Public Methods

Method
public void setNativeAd(NativeAd nativeAd)
Sets the native ad instance to be associated.

Parameters

Parameter nameParameter desc
nativeAdNative ad instance.
Method
public void unregister()
Deregisters a native ad instance.