Skip to main content

Class: GarminTimerManager

A manager of timers for Garmin avionics. Manages one flight timer and an arbitrary number of generic timers.

Constructors

constructor

new GarminTimerManager(bus, options): GarminTimerManager

Creates a new instance of GarminTimerManager.

Parameters

NameTypeDescription
busEventBusThe event bus.
optionsReadonly<GarminTimerManagerOptions>The number of supported generic timers.

Returns

GarminTimerManager

Defined in

src/garminsdk/timer/GarminTimerManager.ts:46

new GarminTimerManager(bus, genericTimerCount): GarminTimerManager

Creates a new instance of GarminTimerManager.

Parameters

NameTypeDescription
busEventBusThe event bus.
genericTimerCountnumberThe number of supported generic timers.

Returns

GarminTimerManager

Defined in

src/garminsdk/timer/GarminTimerManager.ts:52

Properties

FLIGHT_TIMER_INDEX

Static Readonly FLIGHT_TIMER_INDEX: 1

The index of the flight timer.

Defined in

src/garminsdk/timer/GarminTimerManager.ts:24


GENERIC_TIMER_INDEX

Static Readonly GENERIC_TIMER_INDEX: 2

The index of the first generic timer.

Defined in

src/garminsdk/timer/GarminTimerManager.ts:26


MAX_GENERIC_TIMER_VALUE

Static Readonly MAX_GENERIC_TIMER_VALUE: number

The maximum value of a generic timer, in milliseconds, exclusive.

Defined in

src/garminsdk/timer/GarminTimerManager.ts:29

Methods

destroy

destroy(): void

Destroys this manager.

Returns

void

Defined in

src/garminsdk/timer/GarminTimerManager.ts:93


init

init(): void

Initializes this manager.

Returns

void

Throws

Error if this manager has been destroyed.

Defined in

src/garminsdk/timer/GarminTimerManager.ts:72