OnH5AdsEventListener

fun 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 H5AdsWebViewClient and pass in the WebView that can execute JavaScript from H5 ads events.

Example usage:

val h5AdsEventListener = OnH5AdsEventListener { webView.evaluateJavascript(it, 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.