Search in sources :

Example 16 with WebViewBase

use of org.prebid.mobile.rendering.views.webview.WebViewBase 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();
}
Also used : WebViewBase(org.prebid.mobile.rendering.views.webview.WebViewBase) JsExecutor(org.prebid.mobile.rendering.views.webview.mraid.JsExecutor) HTMLCreative(org.prebid.mobile.rendering.models.HTMLCreative)

Aggregations

WebViewBase (org.prebid.mobile.rendering.views.webview.WebViewBase)16 Test (org.junit.Test)10 PrebidWebViewBase (org.prebid.mobile.rendering.views.webview.PrebidWebViewBase)10 HTMLCreative (org.prebid.mobile.rendering.models.HTMLCreative)5 MraidEvent (org.prebid.mobile.rendering.models.internal.MraidEvent)4 BaseJSInterface (org.prebid.mobile.rendering.views.webview.mraid.BaseJSInterface)4 View (android.view.View)3 InterstitialView (org.prebid.mobile.rendering.bidding.display.InterstitialView)3 Handler (android.os.Handler)2 VideoView (org.prebid.mobile.rendering.bidding.display.VideoView)2 AdBaseDialog (org.prebid.mobile.rendering.interstitial.AdBaseDialog)2 PrebidWebViewInterstitial (org.prebid.mobile.rendering.views.webview.PrebidWebViewInterstitial)2 WebViewBanner (org.prebid.mobile.rendering.views.webview.WebViewBanner)2 JsExecutor (org.prebid.mobile.rendering.views.webview.mraid.JsExecutor)2 Context (android.content.Context)1 VisibleForTesting (androidx.annotation.VisibleForTesting)1 ContentObject (org.prebid.mobile.ContentObject)1 AdException (org.prebid.mobile.rendering.errors.AdException)1 AdInterstitialDialog (org.prebid.mobile.rendering.interstitial.AdInterstitialDialog)1 AdConfiguration (org.prebid.mobile.rendering.models.AdConfiguration)1