createFrontendCoordinatorContext

@IviExperimental(reasons = [])
fun <PR : PanelRegistry> LifecycleViewModel.createFrontendCoordinatorContext(coreSystemUiViewModel: CoreSystemUiViewModel, createAfterStartupFrontendsTrigger: Flow<Boolean>, panelRegistryFactory: PanelRegistryFactory<PR>, frontendCoordinationRulesFactory: FrontendCoordinationRulesFactory<PR>): FrontendCoordinatorContext<PR>

Creates a FrontendCoordinatorContext that uses the PR and the DefaultFrontendCoordinationRules, and uses the FrontendCoordinator static configuration for the createAfterStartupFrontendsTimeout.

Parameters

coreSystemUiViewModel

The view model for the state of the system UI's core functionality.

createAfterStartupFrontendsTrigger

Indicates whether frontends adhering to FrontendCreationPolicy.CREATE_FRONTEND_AFTER_STARTUP should be created.

panelRegistryFactory

A factory for the coordinator to create a PanelRegistry.

frontendCoordinationRulesFactory

A factory for the coordinator to create and activate a set of FrontendCoordinationRules.

PR

The type of the PanelRegistry to use.