Skip to main content

Class: G3XAutoBacklightManager

A manager for G3X Touch automatic backlight levels. The manager calculates automatic backlight levels based on the angle of the sun in the sky and publishes the values to the standard G3X automatic backlight level SimVar (L:WTG3X_Auto_Backlight).

Constructors

constructor

new G3XAutoBacklightManager(bus): G3XAutoBacklightManager

Creates a new instance of G3XAutoBacklightManager. The manager is initialized as asleep.

Parameters

NameTypeDescription
busEventBusThe event bus.

Returns

G3XAutoBacklightManager

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Backlight/G3XAutoBacklightManager.ts:24

Methods

destroy

destroy(): void

Destroys this manager. Once this manager is destroyed, it will no longer calculate or publish automatic backlight levels, and cannot be awakened or put to sleep.

Returns

void

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Backlight/G3XAutoBacklightManager.ts:82


sleep

sleep(): void

Puts this manager to sleep. When this manager is asleep, it stops calculating and publishing automatic backlight levels.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Backlight/G3XAutoBacklightManager.ts:55


wake

wake(): void

Wakes this manager. When this manager is awake, it automatically calculates automatic backlight levels and publishes the values to the standard G3X automatic backlight level SimVar (L:WTG3X_Auto_Backlight).

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/workingtitle-instruments-g3x-touch/html_ui/Pages/VCockpit/Instruments/NavSystems/G3XTouch/Shared/Backlight/G3XAutoBacklightManager.ts:35