PanelContainerContext

@IviExperimental(reasons = [])
data class PanelContainerContext(fragmentManager: FragmentManager, softInputAccessor: SoftInputAccessor, viewLifecycleOwner: LifecycleOwner, panelContainerViewModelStore: PanelContainerViewModelStore, fragmentFactory: IviFragmentFactory, viewModelStoreOwner: ViewModelStoreOwner)

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

fragmentManager

An Android fragment manager so that the panel container can add or remove panels' fragments.

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
fun PanelContainerContext(fragmentManager: FragmentManager, softInputAccessor: SoftInputAccessor, viewLifecycleOwner: LifecycleOwner, panelContainerViewModelStore: PanelContainerViewModelStore, fragmentFactory: IviFragmentFactory, viewModelStoreOwner: ViewModelStoreOwner)

Functions

Link copied to clipboard
fun createPanelContext(safeArea: LiveData<SafeArea?> = EmptyLiveData()): CommonPanelContext

Creates a PanelContext.