Class: ComRadioSpacingManager
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
Constructor.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
bus | EventBus | undefined | The event bus. |
comRadioSettingManager | UserSettingManager <ComRadioUserSettingTypes > | undefined | A manager for COM radio user settings. |
comRadioCount | 0 | 2 | 1 | 3 | 2 | The number of supported COM radios. Defaults to 2 . |
Returns
Defined in
src/garminsdk/radio/ComRadioSpacingManager.ts:28
Methods
destroy
▸ destroy(): void
Destroys this manager.
Returns
void
Defined in
src/garminsdk/radio/ComRadioSpacingManager.ts:127
init
▸ init(): void
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.
Defined in
src/garminsdk/radio/ComRadioSpacingManager.ts:49