Interface: G3XTouchPlugin
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:75
A G3X Touch plugin.
Extends
Properties
binder
protectedreadonlybinder:G3XTouchPluginBinder
Defined in: src/sdk/components/FSComponent.ts:1461
The avionics specific plugin binder to accept from the system.
Inherited from
onComponentCreated()?
optionalonComponentCreated: (component) =>void
Defined in: src/sdk/components/FSComponent.ts:1481
An optional hook called when a component is created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
component | DisplayComponent<any> |
Returns
void
Inherited from
AvionicsPlugin.onComponentCreated
onComponentCreating()?
optionalonComponentCreating: (constructor,props) =>undefined|DisplayComponent<any, []>
Defined in: src/sdk/components/FSComponent.ts:1474
An optional hook called when a component is about to be created. Returning a component causes that component to be used instead of the one that was to be created, and returning undefined will cause the original component to be created. If this hook is present, it will be called for EVERY component instantiation, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
constructor | DisplayComponentFactory<any> |
props | any |
Returns
undefined | DisplayComponent<any, []>
Inherited from
AvionicsPlugin.onComponentCreating
onComponentRendered()?
optionalonComponentRendered: (node) =>void
Defined in: src/sdk/components/FSComponent.ts:1488
An optional hook called when a component has completed rendering. If this hook is present, it will be called for EVERY component render completion, so be sure to ensure that this code is well optimized.
Parameters
| Parameter | Type |
|---|---|
node | VNode |
Returns
void
Inherited from
AvionicsPlugin.onComponentRendered
Methods
getChartsSources()?
optionalgetChartsSources():undefined|Iterable<G3XChartsSourceFactory,any,any>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:142
Gets factories for additional electronic charts sources.
Returns
undefined | Iterable<G3XChartsSourceFactory, any, any>
Factories for additional electronic charts sources, or undefined if there are no additional sources.
getPersistentGlobalSettings()?
optionalgetPersistentGlobalSettings():Iterable<UserSetting<any>>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:129
Gets global user settings whose values should be saved across flight sessions. Global settings are those with (un-aliased) names that are unique across the entire airplane.
Returns
Iterable<UserSetting<any>>
An iterable of global user settings whose values should be saved across flight sessions.
getPersistentLocalSettings()?
optionalgetPersistentLocalSettings():Iterable<UserSetting<any>>
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:136
Gets instrument-local user settings whose values should be saved across flight sessions. Instrument-local user settings are those with (un-aliased) names that are only unique to their local JS instrument.
Returns
Iterable<UserSetting<any>>
An iterable of instrument-local user settings whose values should be saved across flight sessions.
loadCss()
protectedloadCss(uri):Promise<void>
Defined in: src/sdk/components/FSComponent.ts:1494
Loads a CSS file into the instrument.
Parameters
| Parameter | Type | Description |
|---|---|---|
uri | string | The URI to the CSS file. |
Returns
Promise<void>
Inherited from
onInit()
onInit():
void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:79
Lifecycle method called during instrument initialization, after all plugins have been loaded.
Returns
void
onInstalled()
abstractonInstalled():void
Defined in: src/sdk/components/FSComponent.ts:1466
A callback run when the plugin has been installed.
Returns
void
Inherited from
registerMfdMainPages()?
optionalregisterMfdMainPages(registrar,context):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:93
Registers MFD main pages.
Parameters
| Parameter | Type | Description |
|---|---|---|
registrar | MfdMainPageRegistrar | The registrar with which to register pages. |
context | Readonly<G3XTouchUiComponentContext> | References to items used to create the base G3X Touch's MFD main pages. |
Returns
void
registerPfdInsets()?
optionalregisterPfdInsets(registrar,context):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:107
Registers PFD insets.
Parameters
| Parameter | Type | Description |
|---|---|---|
registrar | PfdInsetRegistrar | The registrar with which to register insets. |
context | Readonly<G3XTouchUiComponentContext> | References to items used to create the base G3X Touch's PFD insets. |
Returns
void
registerPfdPages()?
optionalregisterPfdPages(registrar,context):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:100
Registers PFD pages.
Parameters
| Parameter | Type | Description |
|---|---|---|
registrar | PfdPageRegistrar | The registrar with which to register pages. |
context | Readonly<G3XTouchUiComponentContext> | References to items used to create the base G3X Touch's PFD pages. |
Returns
void
registerUiViews()?
optionalregisterUiViews(uiService,context):void
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:86
Registers UI views.
Parameters
| Parameter | Type | Description |
|---|---|---|
uiService | UiService | The UI service with which to register views. |
context | Readonly<G3XTouchUiComponentContext> | A context containing references to items used to create the base G3X Touch's UI views. |
Returns
void
renderEis()?
optionalrenderEis():null|VNode
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:113
Renders the contents of the EIS.
Returns
null | VNode
The contents of the EIS, as a VNode, or null if nothing is to be rendered.
renderToPfdInstruments()?
optionalrenderToPfdInstruments(declutter):null|VNode
Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/G3XTouchPlugin.ts:122
Renders components to the PFD instruments view. Any top-level component (not a child of another
DisplayComponent) that implements the PfdInstrumentsPluginComponent interface will have its callback methods
called in response to the corresponding triggers.
Parameters
| Parameter | Type | Description |
|---|---|---|
declutter | Subscribable<boolean> | Whether the PFD is decluttered. |
Returns
null | VNode
Components to render to the PFD instruments view, as a VNode, or null if nothing is to be rendered.