AudioPlayerGateway

class AudioPlayerGateway(bookLibraryController: BookLibraryController) : PlayerEventListener

Provides the current state of the audiobook and live audio players (if either exist), and also updates.

Constructors

Link copied to clipboard
constructor(bookLibraryController: BookLibraryController)

Types

Link copied to clipboard
sealed interface StateContainer

Properties

Link copied to clipboard
val openLiveAudioPlayer: Observable<Unit>
Link copied to clipboard
val state: CurrentValueObservable<AudioPlayerGateway.StateContainer>

Functions

Link copied to clipboard
Link copied to clipboard
open override fun onPlaybackStateChanged(audiobookPlayer: AudiobookPlayer, state: PlayerEventListener.State)