addSubContainer

abstract fun addSubContainer(    parentContainer: ViewGroup,     mode: TaskPanel.Mode,     panelTransitionSource: PanelTransitionSource? = null,     @IdRes subContainerTaskPanelId: Int? = null,     @IdRes subContainerTaskProcessPanelId: Int? = null): TaskPanelSubContainer

Creates a sub-container for an individual task panel and attach it to parentContainer. Sub-containers allow for non-instant transitions between different task panels, during which multiple task panels may be visible at the same time.

Return

A sub-container for an individual task panel. It is placed inside the given parentContainer. It should be removed by removeSubContainer.

Parameters

parentContainer

The container that the created sub-container will be placed in.

mode

The mode of the panel that will be placed in the sub-container.

panelTransitionSource

The source the TaskPanel should transition from when coming into view.

subContainerTaskPanelId

An ID for the task panel sub-container that will be provided when it's being restored. While restoring a sub-container, it's typically not desirable to play an enter animation for the sub-container. When left null, a new ID should be generated.

subContainerTaskProcessPanelId

An ID for the sub-container that will be provided when it's being restored. While restoring a sub-container, it's typically not desirable to play an enter animation for the sub-container. When left null, a new ID should be generated.