{% setvar book_path %}/admob/android/_book.yaml{% endsetvar %} {% include "/admob/android/reference/_dackka-meta-tags.html" %}

AppEventListener

{% setvar page_path %}com/google/android/gms/ads/admanager/AppEventListener.html{% endsetvar %} {% setvar doc_root_path %}/admob/android/reference{% endsetvar %} {% setvar can_switch %}1{% endsetvar %} {% include "android/_kotlin_switcher2.md" %}

interface AppEventListener


A listener interface for app events triggered by ads. App events allow JavaScript within an ad to trigger events in the application. The ad can trigger the app event with a name and optional data. It is then up to the application to decide how to handle the event.

Summary

Public functions

Unit
onAppEvent(name: String!, data: String!)

Called when an app event occurs.

Public functions

onAppEvent

fun onAppEvent(name: String!, data: String!): Unit

Called when an app event occurs.

Parameters
name: String!

The name of the app event.

data: String!

Extra data included with the app event. The data can be null.