public static interface

InMobiNative.NativeAdListener

com.inmobi.ads.InMobiNative.NativeAdListener

Class Overview

A listener for receiving notifications during the lifecycle of a Native ad.

Summary

Public Methods
abstract void onAdClicked(InMobiNative nativeAd)
Called to notify ad was clicked.
abstract void onAdFullScreenDismissed(InMobiNative nativeAd)
abstract void onAdFullScreenDisplayed(InMobiNative nativeAd)
Called to notify that the ad opened an overlay that covers the screen.
abstract void onAdFullScreenWillDisplay(InMobiNative nativeAd)
Called to notify that the ad will open an overlay that covers the screen.
abstract void onAdImpressed(InMobiNative nativeAd)
Called to notify impression has been recorded for this ad.
abstract void onAdLoadFailed(InMobiNative nativeAd, InMobiAdRequestStatus requestStatus)
Called to notify that a native ad failed to load.
abstract void onAdLoadSucceeded(InMobiNative nativeAd)
Called to notify that a native ad was successfully loaded.
abstract void onAdStatusChanged(InMobiNative nativeAd)
Called to notify that the ad status has changed.
abstract void onMediaPlaybackComplete(InMobiNative nativeAd)
Called to notify that the media has finished playing.
abstract void onUserSkippedMedia(InMobiNative nativeAd)
Called to notify that the user has skipped media play.
abstract void onUserWillLeaveApplication(InMobiNative nativeAd)
Called to notify that the user is about to leave the application as a result of interacting with it.

Public Methods

public abstract void onAdClicked (InMobiNative nativeAd)

Called to notify ad was clicked. Note:Override this method to notify click to the Mediation Adapter.

Parameters
nativeAd InMobiNative which was clicked

public abstract void onAdFullScreenDismissed (InMobiNative nativeAd)

public abstract void onAdFullScreenDisplayed (InMobiNative nativeAd)

Called to notify that the ad opened an overlay that covers the screen.

public abstract void onAdFullScreenWillDisplay (InMobiNative nativeAd)

Called to notify that the ad will open an overlay that covers the screen.

public abstract void onAdImpressed (InMobiNative nativeAd)

Called to notify impression has been recorded for this ad. Note:Override this method to notify viewable impression to the Mediation Adapter.

Parameters
nativeAd InMobiNative for which impression is recorded.

public abstract void onAdLoadFailed (InMobiNative nativeAd, InMobiAdRequestStatus requestStatus)

Called to notify that a native ad failed to load.

public abstract void onAdLoadSucceeded (InMobiNative nativeAd)

Called to notify that a native ad was successfully loaded. You may now call getPrimaryViewOfWidth(View, ViewGroup, int) (View, ViewGroup, widthInPixels)} to get the primary Ad View.

public abstract void onAdStatusChanged (InMobiNative nativeAd)

Called to notify that the ad status has changed.

public abstract void onMediaPlaybackComplete (InMobiNative nativeAd)

Called to notify that the media has finished playing.

public abstract void onUserSkippedMedia (InMobiNative nativeAd)

Called to notify that the user has skipped media play.

public abstract void onUserWillLeaveApplication (InMobiNative nativeAd)

Called to notify that the user is about to leave the application as a result of interacting with it.