Skip to main content

Interface: FmcScreenPluginContext<P, E>

Interface for plugins to attach to an FMC screen

Type parameters

NameType
Pextends AbstractFmcPage
EE

Implemented by

Methods

addPluginPageRoute

addPluginPageRoute<T>(route, page, routeEvent?): void

Type parameters

NameType
Textends null

Parameters

NameType
routestring
pagePageConstructor<P & AbstractFmcPage<T>, null>
routeEvent?keyof E & string

Returns

void

Defined in

src/sdk/fmc/FmcScreenPluginContext.ts:69

addPluginPageRoute<U>(route, page, routeEvent, defaultProps): void

Adds a page route to the FMC screen. Routes added by the avionics will have priority.

Type parameters

NameType
Uextends PageConstructor<P, null>

Parameters

NameTypeDescription
routestringthe route
pageUthe page constructor
routeEventundefined | keyof E & stringthe FMC event, optionally, to bind the route to
defaultPropsU extends PageConstructor<AbstractFmcPage<V>, V> ? V : neverdefault props to pass in to the page

Returns

void

Defined in

src/sdk/fmc/FmcScreenPluginContext.ts:82


attachPageExtension

attachPageExtension(pageClass, extension): void

Attaches a FmcPageExtension to a specific page class

Parameters

NameTypeDescription
pageClassPageConstructor<P, null>the page constructor (class) to attach the extension to
extension(...args: any[]) => FmcPageExtension<P>the extension class (will be instantiated whenever the page is created)

Returns

void

Defined in

src/sdk/fmc/FmcScreenPluginContext.ts:104


replacePageRoute

replacePageRoute(route, page, routeEvent?): void

Adds a page route to the FMC screen. Has priority over routes added by the avionics.

Parameters

NameTypeDescription
routestringthe route
pagePageConstructor<P, null>the page constructor
routeEvent?keyof E & stringthe FMC event, optionally, to bind the route to

Returns

void

Defined in

src/sdk/fmc/FmcScreenPluginContext.ts:96