Google is committed to advancing racial equity for Black communities. See how.

OnH5AdsEventListener

public 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 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:

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

Public Method Summary

abstract void
onH5AdsEvent(String jsSnippet)
Called by JavaScript when an H5 ads event needs to be executed on a web view.

Public Methods

public abstract void onH5AdsEvent (String jsSnippet)

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