FrontendRegistry

@IviExperimental(reasons = [])
class FrontendRegistry(lifecycleOwner: LifecycleOwner, frontendMetadata: Collection<FrontendMetadata>, frontendContextFactory: FrontendContextFactory)

Manages the lifecycles of Frontends based on the given frontendMetadata.

Parameters

lifecycleOwner

Provides the lifecycle for the Frontends that this registry manages.

frontendMetadata

The metadata used by the registry to create and manage Frontends.

frontendContextFactory

The factory used to create the FrontendContext instances needed to create Frontends.

Constructors

Link copied to clipboard
fun FrontendRegistry(lifecycleOwner: LifecycleOwner, frontendMetadata: Collection<FrontendMetadata>, frontendContextFactory: FrontendContextFactory)

Properties

Link copied to clipboard

Whether all frontends with the FrontendCreationPolicy.CREATE_FRONTEND_AT_STARTUP frontend creation policy are ready.

Link copied to clipboard

The metadata used by the registry to create and manage Frontends.

Link copied to clipboard

All created Frontends in the registry.

Functions

Link copied to clipboard
fun getMenuItemId(frontendContext: FrontendContext): MenuItem.Id?

Gets the menu item ID associated with the given frontendContext.

Link copied to clipboard

Gets the Frontend associates with the given menuItemId, creating the Frontend if it wasn't yet.

Link copied to clipboard
open override fun toString(): String

Extensions

Link copied to clipboard

Extracts all Panels from a from the Frontends within a PanelRegistry.