OnH5AdsEventListener

interface OnH5AdsEventListener


Interface definition for a callback to be invoked when JavaScript from an H5 ads event needs to be executed on a web view.

If using a android.webkit.WebView, there is no need to manually implement this listener. Instead, create an com.google.android.gms.ads.h5.H5AdsWebViewClient and pass in the WebView that can execute JavaScript from H5 ads events.

Example usage:

OnH5AdsEventListener h5AdsEventListener =
    jsSnippet -> webView.evaluateJavascript(jsSnippet, null);

Summary

Public functions

Unit
onH5AdsEvent(jsSnippet: String!)

Called by JavaScript when an H5 ads event needs to be executed on a web view.

Public functions

onH5AdsEvent

fun onH5AdsEvent(jsSnippet: String!): Unit

Called by JavaScript when an H5 ads event needs to be executed on a web view.