Skip to main content

Class: AlertsSubject

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:39

A subject that tracks G1000 alert messages.

Implements

Constructors

Constructor

new AlertsSubject(bus): AlertsSubject

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:51

Creates an instance of a AlertsSubject.

Parameters

ParameterTypeDescription
busEventBusAn instance of the event bus.

Returns

AlertsSubject

Accessors

length

Get Signature

get length(): number

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:113

Inherit Doc
Returns

number

Implementation of

SubscribableArray.length

Methods

get()

get(index): AlertMessage

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:118

Parameters

ParameterType
indexnumber

Returns

AlertMessage

Inherit Doc

Implementation of

SubscribableArray.get


getArray()

getArray(): readonly AlertMessage[]

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:128

Returns

readonly AlertMessage[]

Inherit Doc

Implementation of

SubscribableArray.getArray


sub()

sub(handler, initialNotify, paused): Subscription

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:133

Parameters

ParameterTypeDefault value
handlerSubscribableArrayHandler<AlertMessage>undefined
initialNotifybooleanfalse
pausedbooleanfalse

Returns

Subscription

Inherit Doc

Implementation of

SubscribableArray.sub


tryGet()

tryGet(index): undefined | AlertMessage

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:123

Parameters

ParameterType
indexnumber

Returns

undefined | AlertMessage

Inherit Doc

Implementation of

SubscribableArray.tryGet


unsub()

unsub(handler): void

Defined in: workingtitle-instruments-g1000/html_ui/Pages/VCockpit/Instruments/NavSystems/WTG1000/PFD/Components/UI/Alerts/AlertsSubject.ts:138

Parameters

ParameterType
handlerSubscribableArrayHandler<AlertMessage>

Returns

void

Inherit Doc

Implementation of

SubscribableArray.unsub