PlaybackState

class PlaybackState(isPlaybackEnabled: Boolean = true, startProgress: Float = 0.0f)

A state holder class that holds the state for audio playback.

Parameters

isPlaybackEnabled

indicates whether playback is enabled.

startProgress

indicates the initial start progress of the playback.

Constructors

Link copied to clipboard
fun PlaybackState(isPlaybackEnabled: Boolean = true, startProgress: Float = 0.0f)

Properties

Link copied to clipboard
var currentProgress: Float
Link copied to clipboard
var isPlaybackEnabled: Boolean