com.bitmovin.player.api.event

com.bitmovin.player.api.event

Contains all Bitmovin events and API to enable subscribing to those events.

Types

NameSummary
Eventsealed class Event
Includes all possible events the Player, Source or OfflineContentManager can emit.
EventEmitterinterface EventEmitter<T : Event> : JavaEventEmitter<T>
Manages subscriptions to specific Events and notifies those subscribers when such an event is being emitted. Subscribers can be simple function types in Kotlin or EventListener implementations in Java. There are also reified versions of the EventEmitter API to allow for convenient usage from Kotlin.
EventListenerinterface EventListener<E : Event?>
Used to represent event listeners when Kotlin lambdas can not be used to conveniently subscribe to events (e.g.
InfoEventinterface InfoEvent
The common supertype implemented by all different info events that are emitted by the Player or Source.
JavaEventEmitterinterface JavaEventEmitter<T : Event>
Provides EventEmitter functionality that is more convenient for Java usage.
OfflineEventsealed class OfflineEvent : Event
PlayerEventsealed class PlayerEvent : Event
Includes all possible events that only the Player can emit.
SourceEventsealed class SourceEvent : Event
Includes all possible events that the Source or Player can emit.

Functions

NameSummary
nextinline fun <E : Event> EventEmitter<Event>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextOfflineEvent")
inline fun <E : OfflineEvent> EventEmitter<OfflineEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.next(noinline action: (E) -> Unit)
@JvmName(name = "nextSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.next(noinline action: (E) -> Unit)
oninline fun <E : Event> EventEmitter<Event>.on(noinline action: (E) -> Unit)
@JvmName(name = "onOfflineEvent")
inline fun <E : OfflineEvent> EventEmitter<OfflineEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = "onPlayerEvent")
inline fun <E : PlayerEvent> EventEmitter<PlayerEvent>.on(noinline action: (E) -> Unit)
@JvmName(name = "onSourceEvent")
inline fun <E : SourceEvent> EventEmitter<SourceEvent>.on(noinline action: (E) -> Unit)