IviFrontendContext
class IviFrontendContext( val iviServiceProvider: IviInstanceBoundIviServiceProvider, val staticConfigurationProvider: StaticConfigurationProvider, panelTypesAvailableToFrontend: PanelTypeSet, panelTypesSupportedBySystemUi: PanelTypeSet) : FrontendContext
Content copied to clipboard
A basic default implementation for FrontendContext.
Parameters
iviServiceProvider
Provides Frontends with access to services.
staticConfigurationProvider
Allows retrieving the values of static configurations, given a configuration key.
panelTypesAvailableToFrontend
Which panels types the Frontend may add. Should be based on FrontendMetadata.availablePanelTypes. This information is used for isPanelTypeAvailableToFrontend.
panelTypesSupportedBySystemUi
Which panels types the system UI can present to the user when added to the Frontend. This information is used for isPanelTypeSupportedBySystemUi.
Constructors
Link copied to clipboard
fun IviFrontendContext( iviServiceProvider: IviInstanceBoundIviServiceProvider, staticConfigurationProvider: StaticConfigurationProvider, panelTypesAvailableToFrontend: PanelTypeSet, panelTypesSupportedBySystemUi: PanelTypeSet)
Content copied to clipboard
Types
Link copied to clipboard
class Factory( iviServiceProvider: IviInstanceBoundIviServiceProvider, staticConfigurationProvider: StaticConfigurationProvider, panelTypesSupportedBySystemUi: PanelTypeSet) : FrontendContextFactory
Content copied to clipboard
A default factory that creates a IviFrontendContexts for a given FrontendMetadata.
Properties
Link copied to clipboard
open override val staticConfigurationProvider: StaticConfigurationProvider
Content copied to clipboard
Functions
Link copied to clipboard
open override fun isPanelTypeAvailableToFrontend(panelType: KClass<out AnyPanel>): Boolean
Content copied to clipboard
Link copied to clipboard
open override fun isPanelTypeSupportedBySystemUi(panelType: KClass<out AnyPanel>): Boolean
Content copied to clipboard