Class: App

Class that all Apps must extends to be registered. It is used to setup how the app is working.

 

Type parameters

Name Type Description
T extends object = object App options. ie : you need multiple instance of an App with different styles for development.

 

Implements

  • IApp<T>

 

Properties

 

BootMode

BootMode: AppBootMode = AppBootMode.COLD

Desired AppBootMode

Default Value

AppBootMode.COLD

 

Implementation of

IApp.BootMode

 


 

SuspendMode

SuspendMode: AppSuspendMode = AppSuspendMode.SLEEP

Desired AppSuspendMode

Default Value

AppSuspendMode.SLEEP

 

Implementation of

IApp.SuspendMode

 

Accessors

 

isReady

get isReady(): boolean

Boolean to check if app is loaded and installed.

 

Returns

boolean

 


 

internalName

get internalName(): string

Internal app name

 

Returns

string

Default Value

Class's name (this.constructor.name)

 

Implementation of

IApp.internalName

 


 

unitsSettingsManager

get unitsSettingsManager(): UnitsSettingsManager

EFB units settings manager

 

Returns

UnitsSettingsManager

 

Implementation of

IApp.unitsSettingsManager

 


 

efbSettingsManager

get efbSettingsManager(): EfbSettingsManager

EFB settings manager

 

Returns

EfbSettingsManager

 


 

name

get name(): string

App friendly name (shown on the App List)

 

Returns

string

 

Implementation of

IApp.name

 


 

icon

get icon(): string

App icon (must return an uri)

 

Returns

string

 

Implementation of

IApp.icon

 

Methods

 

install

install(props): Promise<void>

Install hook

 

Parameters
Name Type
props AppInstallProps<T>

 

Returns

Promise<void>

 

Implementation of

IApp.install

 


 

render

render(): TVNode<AppView<AppViewProps>, unknown>

Must render an extended AppView for the App

 

Returns

TVNode<AppView<AppViewProps>, unknown>

 

Implementation of

IApp.render

 

Returns

Float64Array

Coordinates from top-left offset.