abstract class SxAdSlotDelegate : OmidControllerWrapper, 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> |
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 |
publicAdUnObserve |
var publicAdUnObserve: () -> Unit |
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 <S : SAdSlot<S>> loadAd(adSlot: S): Unit |
onAdSlotComplete |
Called when ON_AD_SLOT_COMPLETE and ENDED were received. open fun onAdSlotComplete(): Unit |
onControllerAvailable |
Is called when this delegate was used to create a SxAdSlotController. open suspend fun onControllerAvailable(sxAdSlotController: SxAdSlotController): Unit |
release |
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 |