Interface NativeAdEventListener

com.yandex.mobile.ads.nativeads

public interface NativeAdEventListener

All Known Subinterfaces:
ClosableNativeAdEventListener
All Known Implementing Classes:
ClosableNativeAdEventListener.SimpleClosableNativeAdEventListener, NativeAdEventListener.SimpleNativeAdEventListener

The interface defines callback methods that track events in the lifecycle of a native ad.

Nested Classes

Methods

void onAdClosed()

Called when the in-app browser is closed.

void onAdLeftApplication()

Called when the app becomes inactive because the user has clicked on an ad and is about to switch to a different app (for example, a browser).

void onAdOpened()

Called when the in-app browser opens in response to a click on an ad.

Method Detail

onAdClosed

public void onAdClosed ()

Called when the in-app browser is closed.

onAdLeftApplication

public void onAdLeftApplication ()

Called when the app becomes inactive because the user has clicked on an ad and is about to switch to a different app (for example, a browser).

onAdOpened

public void onAdOpened ()

Called when the in-app browser opens in response to a click on an ad.