Audio Playback Controller
interface AudioPlaybackController
Controller given when entering audio playback mode.
Types
Link copied to clipboard
interface AudioPlaybackListener
Listener for audio playback events.
Functions
Link copied to clipboard
abstract fun addAudioPlaybackListener(@NonNull listener: AudioPlaybackController.AudioPlaybackListener)
Registers a AudioPlaybackListener to get notified when audio playback state changes.
Link copied to clipboard
Leaves playback mode.
Link copied to clipboard
Returns the audio mode manager from this controller.
Link copied to clipboard
Returns current playback position in milliseconds.
Link copied to clipboard
Returns total playback duration in milliseconds.
Link copied to clipboard
abstract fun removeAudioPlaybackListener(@NonNull listener: AudioPlaybackController.AudioPlaybackListener)
Removes a previously registered AudioPlaybackListener.