CompactProcessViewModel
A ViewModel used for populating the templates of MainProcessPanels and TaskProcessPanels.
The template is divided into several sections. Each section can be populated by its own data field in this ViewModel.
A schematic overview of the vertical main process panel template:
__________________________________________________________
| |
| ______ |
| | | |
| | Logo | |
| |______| |
| _________________________ |
| | | |
| | | | Process metadata
| | | | section
| | Image | |
| | | |
| | | |
| |_________________________| |
| Primary Text |
| Secondary Text |
|__________________________________________________________|
| |
| Progress | Progress bar
|__________________________________________________________| section
| __________ __________ __________ |
| | | | | | | | Primary controls
| | Button 1 | | Button 2 | | Button n | | section
| |__________|, |__________|...|__________| |
|__________________________________________________________|
| __________ __________ __________ |
| | | | | | | | Secondary controls
| | Button 1 | | Button 2 | | Button n | | section
| |__________|, |__________|...|__________| |
|__________________________________________________________|
Content copied to clipboard
Parameters
Types
Link copied to clipboard
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.
Properties
Link copied to clipboard
abstract val primaryControlsViewModel: LiveData<VisibilityProvidingCompositeViewModel<CompactProcessControlViewModel>>
Content copied to clipboard
Link copied to clipboard
open val progressBarViewModel: LiveData<CompactProcessViewModel.ProgressViewModel?>
Content copied to clipboard
Link copied to clipboard
abstract val secondaryControlsViewModel: LiveData<VisibilityProvidingCompositeViewModel<CompactProcessControlViewModel>>
Content copied to clipboard