Android Verizon Ads SDK Standard Edition Documentation  1.1
Public Member Functions | List of all members
NativeAd.NativeAdListener Interface Reference

Interface for receiving notifications from the NativeAd. More...

Public Member Functions

void onAdLeftApplication (NativeAd nativeAd)
 Called when the NativeAd causes the user to leave the application. More...
 
void onClicked (NativeComponentBundle nativeComponentBundle)
 Called when the NativeAd has been clicked. More...
 
void onClosed (NativeAd nativeAd)
 Called when the NativeAd has been closed. More...
 
void onError (NativeAd nativeAd, ErrorInfo errorInfo)
 Called when an error occurs during the NativeAd lifecycle. More...
 
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. More...
 

Detailed Description

Interface for receiving notifications from the NativeAd.

Member Function Documentation

◆ onAdLeftApplication()

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
nativeAdthe NativeAd that caused the application exit

◆ onClicked()

void onClicked ( NativeComponentBundle  nativeComponentBundle)

Called when the NativeAd has been clicked.

Parameters
nativeComponentBundlethe NativeComponentBundle that was clicked

◆ onClosed()

void onClosed ( NativeAd  nativeAd)

Called when the NativeAd has been closed.

Parameters
nativeAdthe NativeAd that was closed

◆ onError()

void onError ( NativeAd  nativeAd,
ErrorInfo  errorInfo 
)

Called when an error occurs during the NativeAd lifecycle.

An ErrorInfo object provides detail about the error

Parameters
nativeAdthe NativeAd that experienced the error
errorInfothe ErrorInfo that describes the error that occurred

◆ onEvent()

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
nativeAdthe NativeAd that is relaying the event
sourcethe identifier of the event source
eventIdthe event identifier
argumentsa map of key/value pairs of arguments related to the event