Class: FmcPageFactory<T>
FMC Page factory, used to instantiate pages.
FMC Pages should be instantiated with the required data and objects (FMS instances, avionics-specific utilities, event busses) in instances of subclasses of this type.
Type parameters
Name | Type |
---|---|
T | extends AbstractFmcPage |
Constructors
constructor
• new FmcPageFactory<T
>(): FmcPageFactory
<T
>
Type parameters
Name | Type |
---|---|
T | extends AbstractFmcPage <any > |
Returns
Methods
createPage
▸ createPage<U
>(pageCtor
, bus
, screen
, props
, renderCallback
): T
& AbstractFmcPage
<U
>
Creates a page of the specified subtype of AbstractFmcPage
Type parameters
Name | Type |
---|---|
U | extends null | object |
Parameters
Name | Type | Description |
---|---|---|
pageCtor | (...args : any []) => T | the page constructor |
bus | EventBus | the event bus |
screen | FmcScreen <T & AbstractFmcPage <U >, any > | the FMC screen instance |
props | U | the props to create this page with |
renderCallback | FmcRenderCallback | the render callback to give to the page |
Returns
T
& AbstractFmcPage
<U
>
Defined in
src/sdk/fmc/FmcPageFactory.ts:24