lib / tv.smartclip.smartclientandroid.lib.smartcorefacade / SxEventProvider

SxEventProvider

interface SxEventProvider

Provides methods to access and subscribe to event changes of SxAdInfo, SxPublicAd and SxPublicAdSlot.

Properties

adInfo

Current SxAdInfo instance or null of there is none.

abstract val adInfo: SxAdInfo?

publicAd

Current SxPublicAd instance or null of there is none.

abstract val publicAd: SxPublicAd?

publicAdSlot

Current SxPublicAdSlot instance or null of there is none.

abstract val publicAdSlot: SxPublicAdSlot?

Functions

addAdInfoListener

abstract fun addAdInfoListener(listener: IOnChangedScope<SxAdInfo>.(SxAdInfo) -> Unit): () -> Unit

addPublicAdListener

abstract fun addPublicAdListener(listener: IOnChangedScope<SxPublicAd>.(SxPublicAd) -> Unit): () -> Unit

addPublicAdSlotListener

abstract fun addPublicAdSlotListener(listener: IOnChangedScope<SxPublicAdSlot>.(SxPublicAdSlot) -> Unit): () -> Unit

Inheritors

SxSequencer

Controller class for instream use cases.

class SxSequencer : IKoinDi, SxEventProvider