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);
}
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);
}
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);
}
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);
}
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);
}
Aggregations