use of org.prebid.mobile.rendering.views.webview.mraid.JsExecutor 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);
}
use of org.prebid.mobile.rendering.views.webview.mraid.JsExecutor in project prebid-mobile-android by prebid.
the class WebViewBanner method setMRAIDInterface.
public void setMRAIDInterface() {
BaseJSInterface mraid = new BannerJSInterface(getContext(), this, new JsExecutor(this, new Handler(Looper.getMainLooper()), new HandlerQueueManager()));
addJavascriptInterface(mraid, "jsBridge");
LogUtil.debug(TAG, "JS bridge initialized");
setBaseJSInterface(mraid);
}
use of org.prebid.mobile.rendering.views.webview.mraid.JsExecutor in project prebid-mobile-android by prebid.
the class MraidEventHandlerNotifierRunnable method run.
@Override
public void run() {
HTMLCreative htmlCreative = mWeakHtmlCreative.get();
WebViewBase webViewBase = mWeakWebViewBase.get();
if (htmlCreative == null || webViewBase == null) {
LogUtil.debug(TAG, "Unable to pass event to handler. HtmlCreative or webviewBase is null");
return;
}
htmlCreative.handleMRAIDEventsInCreative(mMraidEvent, webViewBase);
final JsExecutor jsExecutor = mWeakJsExecutor.get();
if (jsExecutor == null) {
LogUtil.debug(TAG, "Unable to executeNativeCallComplete(). JsExecutor is null.");
return;
}
jsExecutor.executeNativeCallComplete();
}
Aggregations