-
- All Implemented Interfaces:
public interface NativeAd.NativeAdListener
Interface for receiving notifications from the NativeAd
-
-
Method Summary
Modifier and Type Method Description abstract void
onLoaded(NativeAd nativeAd)
Called when the ) has been loaded the { } that was loaded abstract void
onLoadFailed(NativeAd nativeAd, ErrorInfo errorInfo)
Called when the NativeAd failed to load abstract void
onError(NativeAd nativeAd, ErrorInfo errorInfo)
Called when an error occurs during the NativeAd lifecycle. abstract void
onClosed(NativeAd nativeAd)
Called when the NativeAd has been closed abstract void
onClicked(NativeAd nativeAd, NativeComponent nativeComponent)
Called when the NativeAd has been clicked abstract void
onAdLeftApplication(NativeAd nativeAd)
Called when the NativeAd causes the user to leave the application. abstract void
onEvent(NativeAd nativeAd, String source, String eventId, Map<String, Object> arguments)
This callback is used to surface additional events to the publisher from the SDK -
-
Method Detail
-
onLoaded
abstract void onLoaded(NativeAd nativeAd)
Called when the ) has been loaded the { } that was loaded
-
onLoadFailed
abstract void onLoadFailed(NativeAd nativeAd, ErrorInfo errorInfo)
Called when the NativeAd failed to load
- Parameters:
nativeAd
- the NativeAd that failed to load
-
onClosed
abstract void onClosed(NativeAd nativeAd)
Called when the NativeAd has been closed
- Parameters:
nativeAd
- the NativeAd that was closed
-
onClicked
abstract void onClicked(NativeAd nativeAd, NativeComponent nativeComponent)
Called when the NativeAd has been clicked
- Parameters:
nativeAd
- the ad that was clickednativeComponent
- the NativeComponent that was clicked within the ad
-
onAdLeftApplication
abstract void onAdLeftApplication(NativeAd nativeAd)
Called when the NativeAd causes the user to leave the application. For example, tapping a NativeAd may launch an external browser.
- Parameters:
nativeAd
- the NativeAd that caused the application exit
-
onEvent
abstract void onEvent(NativeAd nativeAd, String source, String eventId, Map<String, Object> arguments)
This callback is used to surface additional events to the publisher from the SDK
- Parameters:
nativeAd
- the NativeAd that is relaying the eventsource
- the identifier of the event sourceeventId
- the event identifierarguments
- a map of key/value pairs of arguments related to the event
-
-
-
-