CompactProcessMetadataViewModel

class CompactProcessMetadataViewModel(    val image: LiveData<ImageDescriptor?> = EmptyLiveData(),     val logo: LiveData<DrawableResolver?> = EmptyLiveData(),     val primaryText: LiveData<StringResolver?> = EmptyLiveData(),     val secondaryText: LiveData<StringResolver?> = EmptyLiveData(),     val onClick: LiveData<() -> Unit?> = EmptyLiveData())

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

Constructors

Link copied to clipboard
fun CompactProcessMetadataViewModel(    image: LiveData<ImageDescriptor?> = EmptyLiveData(),     logo: LiveData<DrawableResolver?> = EmptyLiveData(),     primaryText: LiveData<StringResolver?> = EmptyLiveData(),     secondaryText: LiveData<StringResolver?> = EmptyLiveData(),     onClick: LiveData<() -> Unit?> = EmptyLiveData())

Properties

Link copied to clipboard
val image: LiveData<ImageDescriptor?>

An image to illustrate the ongoing process.

Link copied to clipboard
val logo: LiveData<DrawableResolver?>

A logo related to the ongoing process.

Link copied to clipboard
val onClick: LiveData<() -> Unit?>

The callback function for when the metadata area is clicked.

Link copied to clipboard
val primaryText: LiveData<StringResolver?>

The main text describing the ongoing process.

Link copied to clipboard
val secondaryText: LiveData<StringResolver?>

A secondary text describing the ongoing process.