Skip to main content

Class: ComRadioSpacingManager

Defined in: src/garminsdk/radio/ComRadioSpacingManager.ts:8

A manager for COM radio channel spacing. Syncs COM radio spacing modes with the COM radio spacing user setting and intercepts COM radio spacing toggle key events in order to have them toggle the value of the user setting instead.

Constructors

Constructor

new ComRadioSpacingManager(bus, comRadioSettingManager, comRadioCount): ComRadioSpacingManager

Defined in: src/garminsdk/radio/ComRadioSpacingManager.ts:28

Constructor.

Parameters

ParameterTypeDefault valueDescription
busEventBusundefinedThe event bus.
comRadioSettingManagerUserSettingManager<ComRadioUserSettingTypes>undefinedA manager for COM radio user settings.
comRadioCount0 | 1 | 2 | 32The number of supported COM radios. Defaults to 2.

Returns

ComRadioSpacingManager

Methods

destroy()

destroy(): void

Defined in: src/garminsdk/radio/ComRadioSpacingManager.ts:127

Destroys this manager.

Returns

void


init()

init(): void

Defined in: src/garminsdk/radio/ComRadioSpacingManager.ts:49

Initializes this manager. Once this manager is initialized, it will automatically set the spacing mode of COM radios based on the COM radio spacing user setting and intercept COM radio spacing toggle key events in order to have them toggle the value of the user setting instead. If this manager is not yet ready to intercept key events when this method is called, initialization will be suspended until the manager is ready to intercept key events.

Returns

void

Throws

Error if this manager has been destroyed.