TaskCompactProcessViewModel

abstract class TaskCompactProcessViewModel<P : TaskProcessPanel>(panel: P) : CompactProcessViewModel<P>

A specialization of CompactProcessViewModel for use with TaskProcessPanel.

Parameters

P

The type of the panel.

panel

The TaskProcessPanel of type P that hosts this TaskCompactProcessViewModel.

Constructors

Link copied to clipboard
fun <P : TaskProcessPanel> TaskCompactProcessViewModel(panel: P)

Inherited properties

Link copied to clipboard
val isSafetyLockEnabled: LiveData<Boolean>
Link copied to clipboard
abstract val metadataViewModel: CompactProcessMetadataViewModel

The metadata that describes an ongoing process. This allows the user to recognise what the ongoing process is about.

Link copied to clipboard
val panel: P
Link copied to clipboard

A ViewModel containing a list of buttons to offer in the main process panel or task process panel. The primary buttons commonly impact the ongoing process directly. E.g., skipping a song.

Link copied to clipboard
open val progressBarViewModel: LiveData<CompactProcessViewModel.ProgressViewModel?>

A ViewModel containing information required to display a progress bar.

Link copied to clipboard

A ViewModel containing a list of buttons to offer in the main process panel or task process panel. The secondary buttons commonly do not impact the ongoing process but offer actions related to the ongoing process. E.g., liking a song.

Link copied to clipboard
@IdRes
open val tag: Int?

An ID tag which can be overridden to find a specific main process panel or task process panel during tests by use of the withIdTag() matcher.

Inherited functions

Link copied to clipboard
open fun addCloseable(@NonNull p0: Closeable)
Link copied to clipboard
override fun getLifecycle(): Lifecycle