AudioPlaybackListener

Listener for audio playback events.

Functions

Link copied to clipboard
abstract fun onError(@NonNull controller: AudioPlaybackController, @NonNull error: Throwable)
Called when audio content cannot be played.
Link copied to clipboard
abstract fun onPause(@NonNull controller: AudioPlaybackController)
Called when audio content is paused.
Link copied to clipboard
abstract fun onPlay(@NonNull controller: AudioPlaybackController)
Called when audio content is playing.
Link copied to clipboard
abstract fun onReady(@NonNull controller: AudioPlaybackController)
Called when audio content is ready to be played.
Link copied to clipboard
abstract fun onStop(@NonNull controller: AudioPlaybackController)
Called when audio content is stopped.