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

Type parameters

NameTypeDescription
Textends object = objectApp 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(opens in a new tab)<void>

Install hook

Parameters
NameType
propsAppInstallProps<T>

Returns

Promise(opens in a new tab)<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(opens in a new tab)

Coordinates from top-left offset.