Interface NativeAdUnit
-
- All Implemented Interfaces:
-
com.inmobi.ads.core.WinLossNotifier,com.inmobi.media.ads.common.adUnit.AdUnit,com.inmobi.media.ads.common.listeners.AUDestroyListener
public interface NativeAdUnit implements AdUnit, WinLossNotifier
Interface defining the contract for native ad units. This interface extends the base AdUnit interface and provides additional functionality specific to native ads, including view registration, tracking management, user action handling, and win/loss notification support.
-
-
Method Summary
Modifier and Type Method Description abstract UnitregisterViewForTracking(InMobiNativeViewData inMobiNativeViewData)Registers the provided view data for tracking impressions and clicks. abstract UnitunTrackViews()Removes tracking from all previously registered views. abstract UnittakeAction()Handles user actions (such as clicks) on the native ad. -
Methods inherited from class com.inmobi.media.ads.common.adUnit.AdUnit
fillTelemetryExtras, inflate -
Methods inherited from class com.inmobi.media.ads.common.listeners.AUDestroyListener
onDestroy -
Methods inherited from class com.inmobi.ads.core.WinLossNotifier
notifyLoss, notifyWin -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
registerViewForTracking
abstract Unit registerViewForTracking(InMobiNativeViewData inMobiNativeViewData)
Registers the provided view data for tracking impressions and clicks. This method should be called to enable tracking for all views associated with the native ad.
- Parameters:
inMobiNativeViewData- The view data containing all views that need to be tracked.
-
unTrackViews
abstract Unit unTrackViews()
Removes tracking from all previously registered views. This method should be called when views are no longer visible or when cleaning up to prevent memory leaks and stop tracking activities.
-
takeAction
abstract Unit takeAction()
Handles user actions (such as clicks) on the native ad. This method should be called when a user interacts with the ad to trigger appropriate actions.
-
-
-
-