ProgressViewModel

@IviExperimental(reasons = [])
class ProgressViewModel(val progress: LiveData<TimeTransition?> = ImmutableLiveData(null), val isBuffering: LiveData<Boolean> = ImmutableLiveData(false))

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
constructor(progress: LiveData<TimeTransition?> = ImmutableLiveData(null), isBuffering: LiveData<Boolean> = ImmutableLiveData(false))

Properties

Link copied to clipboard
Link copied to clipboard
val progress: LiveData<TimeTransition?>