Skip to main content

Class: G3XAutoBacklightManager

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XAutoBacklightManager.ts:10

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

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XAutoBacklightManager.ts:24

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

Parameters

ParameterTypeDescription
busEventBusThe event bus.

Returns

G3XAutoBacklightManager

Methods

destroy()

destroy(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XAutoBacklightManager.ts:82

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


sleep()

sleep(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XAutoBacklightManager.ts:55

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.


wake()

wake(): void

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Backlight/G3XAutoBacklightManager.ts:35

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.