ProgressViewModel
class ProgressViewModel(val progress: LiveData<TimeTransition?> = ImmutableLiveData(null), val isBuffering: LiveData<Boolean> = ImmutableLiveData(false))
Content copied to clipboard
A ViewModel containing information required to display a progress bar.
Parameters
progress
The time transition information which contains the start and end point.
isBuffering
Whether or not the progress is in a buffering state.
Constructors
Link copied to clipboard
fun ProgressViewModel(progress: LiveData<TimeTransition?> = ImmutableLiveData(null), isBuffering: LiveData<Boolean> = ImmutableLiveData(false))
Content copied to clipboard