abstract class SxAdSlotDelegate : OmidControllerWrapper, Releasable, IKoinDi
Provides interface for visualizing the advertisement and providing information about its playback.
<init> |
Provides interface for visualizing the advertisement and providing information about its playback. SxAdSlotDelegate(koinDi: IKoinDi) |
adInfoDelegate |
val adInfoDelegate: IObservable<SxAdInfo> |
adInfoTypeUnObserve |
var adInfoTypeUnObserve: () -> Unit |
adInfoUnObserve |
var adInfoUnObserve: () -> Unit |
adOverlayContainer |
val adOverlayContainer: SxAdOverlayContainer |
isBuffering |
var isBuffering: Boolean |
keepScreenOn |
open var keepScreenOn: Boolean |
lastNonTimeUpdateEventType |
var lastNonTimeUpdateEventType: SxEventType? |
mainScope |
val mainScope: MainCoroutineScope |
mediaVolumeController |
val mediaVolumeController: IVolumeState |
overlayContainer |
Nullable overlay container view. Dispatchers.Default val overlayContainer: ViewGroup |
surfaceView |
val surfaceView: View |
type |
Defines the usage type for this delegate implementation. val type: SxAdUseCase |
applyLayoutConfiguration |
Is called when the configuration becomes available. Implementing classes should apply the layout configuration here. open suspend fun applyLayoutConfiguration(context: Context, configuration: SxLayoutConfiguration): Unit |
isCurrentSeparatorClip |
fun isCurrentSeparatorClip(): Boolean |
load |
Is called when a play video clip should be displayed. Do not forget to call super method when overriding this. open suspend fun load(url: String, autoPlay: Boolean, disableSeeking: Boolean): Unit |
loadAd |
open suspend fun loadAd(adSlot: SAdSlot<*>): Unit |
onAdSlotComplete |
Called when ON_AD_SLOT_COMPLETE and ENDED were received. open fun onAdSlotComplete(): Unit |
onAdTagLoadingFailed |
open fun onAdTagLoadingFailed(error: SxMediaError): Job |
release |
Removes all external class references. Has to be called when the implementing class is not needed anymore. open fun release(): Unit |
seek |
Is called when the current video clip should be sought by a specific offset. abstract suspend fun seek(offset: Long): Unit |
startAdSlot |
open suspend fun startAdSlot(): Unit |