TaskPanelSubContainerViewModel

Task panel-sub container view model.

The task panel sub-container can be used to visualize a task panel stack and an optional task progress panel.

When the user presses the back button, the top task panel is dismissed.

Constructors

Link copied to clipboard
fun TaskPanelSubContainerViewModel()

Properties

Link copied to clipboard
val hasTaskProcessPanel: LiveData<Boolean>

True if this sub-container has a task process panel.

Link copied to clipboard

Task panel fragment container ID.

Link copied to clipboard

Task process panel fragment container ID.

Inherited properties

Link copied to clipboard
val extraState: LiveData<Unit>

Observers are notified of any changes to properties that use a property delegate created with mutableExtraState.

Link copied to clipboard
val liveSubContainerData: LiveData<TaskPanelStackData>

The data provided to the panel sub-container as LiveData. The LiveData is not updated any longer when the exit animation of the panel sub-container starts. This to prevent visual artifacts during the exit animation.

Link copied to clipboard
var subContainerData: TaskPanelStackData

The data set to the panel sub-container.

Link copied to clipboard

The lifecycle state of the panel sub-container. This is controlled by the PanelContainerControllerAdapter.

Functions

Link copied to clipboard
fun onBackPressed(): Boolean

Dismisses the top panel of the task panel stack.

Inherited functions

Link copied to clipboard
fun isExiting(): Boolean

Returns true if the sub-container is exiting or has left the panel container.

Link copied to clipboard
open override fun toString(): String