Search in sources :

Example 1 with OmAdSessionManager

use of org.prebid.mobile.rendering.session.manager.OmAdSessionManager in project prebid-mobile-android by prebid.

the class AbstractCreative method addOmFriendlyObstruction.

public void addOmFriendlyObstruction(InternalFriendlyObstruction friendlyObstruction) {
    if (friendlyObstruction == null) {
        LogUtil.debug(TAG, "addOmFriendlyObstruction: Obstruction view is null. Skip adding as friendlyObstruction");
        return;
    }
    OmAdSessionManager omAdSessionManager = mWeakOmAdSessionManager.get();
    if (omAdSessionManager == null) {
        LogUtil.error(TAG, "Unable to addOmFriendlyObstruction. OmAdSessionManager is null");
        return;
    }
    omAdSessionManager.addObstruction(friendlyObstruction);
}
Also used : OmAdSessionManager(org.prebid.mobile.rendering.session.manager.OmAdSessionManager)

Example 2 with OmAdSessionManager

use of org.prebid.mobile.rendering.session.manager.OmAdSessionManager in project prebid-mobile-android by prebid.

the class OmEventTracker method trackOmVideoAdEvent.

public void trackOmVideoAdEvent(VideoAdEvent.Event event) {
    if (mWeakReferenceOmAdSessionManager == null || mWeakReferenceOmAdSessionManager.get() == null) {
        Log.w(TAG, "Unable to trackOmVideoAdEvent: AdSessionManager is null");
        return;
    }
    OmAdSessionManager omAdSessionManager = mWeakReferenceOmAdSessionManager.get();
    omAdSessionManager.trackAdVideoEvent(event);
}
Also used : OmAdSessionManager(org.prebid.mobile.rendering.session.manager.OmAdSessionManager)

Example 3 with OmAdSessionManager

use of org.prebid.mobile.rendering.session.manager.OmAdSessionManager in project prebid-mobile-android by prebid.

the class OmEventTracker method trackVideoAdStarted.

public void trackVideoAdStarted(float duration, float volume) {
    if (mWeakReferenceOmAdSessionManager == null || mWeakReferenceOmAdSessionManager.get() == null) {
        Log.w(TAG, "Unable to trackVideoAdStarted: AdSessionManager is null");
        return;
    }
    OmAdSessionManager omAdSessionManager = mWeakReferenceOmAdSessionManager.get();
    omAdSessionManager.videoAdStarted(duration, volume);
}
Also used : OmAdSessionManager(org.prebid.mobile.rendering.session.manager.OmAdSessionManager)

Example 4 with OmAdSessionManager

use of org.prebid.mobile.rendering.session.manager.OmAdSessionManager in project prebid-mobile-android by prebid.

the class OmEventTracker method trackOmPlayerStateChange.

public void trackOmPlayerStateChange(InternalPlayerState playerState) {
    if (mWeakReferenceOmAdSessionManager == null || mWeakReferenceOmAdSessionManager.get() == null) {
        Log.w(TAG, "Unable to trackOmPlayerStateChange: AdSessionManager is null");
        return;
    }
    OmAdSessionManager omAdSessionManager = mWeakReferenceOmAdSessionManager.get();
    omAdSessionManager.trackPlayerStateChangeEvent(playerState);
}
Also used : OmAdSessionManager(org.prebid.mobile.rendering.session.manager.OmAdSessionManager)

Example 5 with OmAdSessionManager

use of org.prebid.mobile.rendering.session.manager.OmAdSessionManager in project prebid-mobile-android by prebid.

the class OmEventTracker method trackNonSkippableStandaloneVideoLoaded.

public void trackNonSkippableStandaloneVideoLoaded(boolean isAutoPlay) {
    if (mWeakReferenceOmAdSessionManager == null || mWeakReferenceOmAdSessionManager.get() == null) {
        Log.w(TAG, "Unable to trackVideoAdStarted: AdSessionManager is null");
        return;
    }
    OmAdSessionManager omAdSessionManager = mWeakReferenceOmAdSessionManager.get();
    omAdSessionManager.nonSkippableStandaloneVideoAdLoaded(isAutoPlay);
}
Also used : OmAdSessionManager(org.prebid.mobile.rendering.session.manager.OmAdSessionManager)

Aggregations

OmAdSessionManager (org.prebid.mobile.rendering.session.manager.OmAdSessionManager)11 ContentObject (org.prebid.mobile.ContentObject)2 AdConfiguration (org.prebid.mobile.rendering.models.AdConfiguration)1 PrebidWebViewBase (org.prebid.mobile.rendering.views.webview.PrebidWebViewBase)1 WebViewBase (org.prebid.mobile.rendering.views.webview.WebViewBase)1