Search in sources :

Example 1 with EventForwardingLocalBroadcastReceiver

use of org.prebid.mobile.rendering.utils.broadcast.local.EventForwardingLocalBroadcastReceiver in project prebid-mobile-android by prebid.

the class DisplayView method displayHtmlAd.

private void displayHtmlAd(BidResponse response) throws AdException {
    mAdViewManager = new AdViewManager(getContext(), mAdViewManagerListener, this, mInterstitialManager);
    mAdViewManager.loadBidTransaction(mAdUnitConfiguration, response);
    mEventForwardingReceiver = new EventForwardingLocalBroadcastReceiver(mAdUnitConfiguration.getBroadcastId(), mBroadcastListener);
    mEventForwardingReceiver.register(getContext(), mEventForwardingReceiver);
}
Also used : EventForwardingLocalBroadcastReceiver(org.prebid.mobile.rendering.utils.broadcast.local.EventForwardingLocalBroadcastReceiver) AdViewManager(org.prebid.mobile.rendering.views.AdViewManager)

Example 2 with EventForwardingLocalBroadcastReceiver

use of org.prebid.mobile.rendering.utils.broadcast.local.EventForwardingLocalBroadcastReceiver in project prebid-mobile-android by prebid.

the class BaseAdView method registerEventBroadcast.

protected void registerEventBroadcast() {
    final int broadcastId = mAdViewManager.getAdConfiguration().getBroadcastId();
    mEventForwardingReceiver = new EventForwardingLocalBroadcastReceiver(broadcastId, mBroadcastListener);
    mEventForwardingReceiver.register(getContext(), mEventForwardingReceiver);
}
Also used : EventForwardingLocalBroadcastReceiver(org.prebid.mobile.rendering.utils.broadcast.local.EventForwardingLocalBroadcastReceiver)

Aggregations

EventForwardingLocalBroadcastReceiver (org.prebid.mobile.rendering.utils.broadcast.local.EventForwardingLocalBroadcastReceiver)2 AdViewManager (org.prebid.mobile.rendering.views.AdViewManager)1