PanelContainerContext

@IviExperimental(reasons = [])
data class PanelContainerContext

The entry point for a panel container to communicate with the system UI host. The lifetime of the context instance is bound to the lifetime of the system UI view. For example, it is recreated when the active theme is updated.

Parameters

singlePanelFragmentManager

A fragment manager so that the panel container can add fragments to or remove fragments from panel fragment containers that contain a single panel.

panelStackFragmentManager

A fragment manager so that the panel container can add fragments to or remove fragments from panel fragment containers that contain a panel stack.

pendingFragmentTransactionsExecutor

A function that executes the pending fragment transactions to minimize the overhead on the main thread if multiple fragments are added.

softInputAccessor

A soft input accessor for panels.

viewLifecycleOwner

A lifecycle owner for a panel container.

panelContainerViewModelStore

The PanelContainerViewModel store. Used to store the PanelContainerViewModels.

fragmentFactory

Creates the fragments for the panels of a PanelContainer.

viewModelStoreOwner

Used for managing the system UI's view model(s).

Constructors

Link copied to clipboard
constructor(fragmentManager: FragmentManager, softInputAccessor: SoftInputAccessor, viewLifecycleOwner: LifecycleOwner, panelContainerViewModelStore: PanelContainerViewModelStore, fragmentFactory: IviFragmentFactory, viewModelStoreOwner: ViewModelStoreOwner)