Search in sources :

Example 1 with InterstitialJSInterface

use of org.prebid.mobile.rendering.views.webview.mraid.InterstitialJSInterface in project prebid-mobile-android by prebid.

the class WebViewInterstitial method setMRAIDInterface.

public void setMRAIDInterface() {
    BaseJSInterface mraid = new InterstitialJSInterface(getContext(), this, new JsExecutor(this, new Handler(Looper.getMainLooper()), new HandlerQueueManager()));
    addJavascriptInterface(mraid, "jsBridge");
    LogUtil.debug(TAG, "JS bridge initialized");
    setBaseJSInterface(mraid);
}
Also used : BaseJSInterface(org.prebid.mobile.rendering.views.webview.mraid.BaseJSInterface) InterstitialJSInterface(org.prebid.mobile.rendering.views.webview.mraid.InterstitialJSInterface) JsExecutor(org.prebid.mobile.rendering.views.webview.mraid.JsExecutor) Handler(android.os.Handler) HandlerQueueManager(org.prebid.mobile.rendering.utils.helpers.HandlerQueueManager)

Aggregations

Handler (android.os.Handler)1 HandlerQueueManager (org.prebid.mobile.rendering.utils.helpers.HandlerQueueManager)1 BaseJSInterface (org.prebid.mobile.rendering.views.webview.mraid.BaseJSInterface)1 InterstitialJSInterface (org.prebid.mobile.rendering.views.webview.mraid.InterstitialJSInterface)1 JsExecutor (org.prebid.mobile.rendering.views.webview.mraid.JsExecutor)1