PanelSubContainerViewModel

open class PanelSubContainerViewModel<SD>

Base class for all PanelSubContainerViewModel implementations.

Parameters

SD

The type of the panel sub-container data. The data is derived from the panel container data.

Constructors

Link copied to clipboard
fun PanelSubContainerViewModel()

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<SD>

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: SD

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
open override fun toString(): String