Skip to main content

Class: VSpeedUserSettingUtils

A utility class for working with reference V-speed user settings.

Constructors

constructor

new VSpeedUserSettingUtils(): VSpeedUserSettingUtils

Returns

VSpeedUserSettingUtils

Methods

activeValue

activeValue(name, settingManager, useFmsValue, allowZeroValue?): MappedSubscribable<number>

Creates a mapped subscribable which provides the active value of a reference V-speed, in knots. The active value is derived from the following values (in order of decreasing precedence):

  1. User-defined value.
  2. FMS-defined value.
  3. Default value.

Parameters

NameTypeDescription
namestringThe name of the reference V-speed.
settingManagerUserSettingManager<Omit<VSpeedUserSettingTypes, `vSpeedShow_${string}`>>A manager for reference V-speed user settings.
useFmsValuetrueWhether to support the V-speed's FMS-defined value.
allowZeroValue?booleanWhether to allow the active value to be equal to zero. If false, a value of zero is treated as an undefined value (similar to negative values). Defaults to false.

Returns

MappedSubscribable<number>

A mapped subscribable which provides the active value of the specified reference V-speed, in knots.

Defined in

src/garminsdk/settings/VSpeedUserSettings.ts:41

activeValue(name, settingManager, useFmsValue, allowZeroValue?): MappedSubscribable<number>

Creates a mapped subscribable which provides the active value of a reference V-speed, in knots. The active value is derived from the following values (in order of decreasing precedence):

  1. User-defined value.
  2. Default value.

Parameters

NameTypeDescription
namestringThe name of the reference V-speed.
settingManagerUserSettingManager<Omit<VSpeedUserSettingTypes, `vSpeedFmsValue_${string}` | `vSpeedShow_${string}`>>A manager for reference V-speed user settings.
useFmsValuefalseWhether to support the V-speed's FMS-defined value.
allowZeroValue?booleanWhether to allow the active value to be equal to zero. If false, a value of zero is treated as an undefined value (similar to negative values). Defaults to false.

Returns

MappedSubscribable<number>

A mapped subscribable which provides the active value of the specified reference V-speed, in knots.

Defined in

src/garminsdk/settings/VSpeedUserSettings.ts:60


isFmsValueActive

isFmsValueActive(name, settingManager): MappedSubscribable<boolean>

Creates a mapped subscribable which provides whether a reference V-speed is using its FMS-defined value as its active value.

Parameters

NameTypeDescription
namestringThe name of the reference V-speed.
settingManagerUserSettingManager<Omit<VSpeedUserSettingTypes, `vSpeedShow_${string}`>>A manager for reference V-speed user settings.

Returns

MappedSubscribable<boolean>

A mapped subscribable which provides whether the specified reference V-speed is using its FMS-defined value as its active value.

Defined in

src/garminsdk/settings/VSpeedUserSettings.ts:181


isUserValueActive

isUserValueActive(name, settingManager, useFmsValue): MappedSubscribable<boolean>

Creates a mapped subscribable which provides whether a reference V-speed is using its user-defined value as its active value.

Parameters

NameTypeDescription
namestringThe name of the reference V-speed.
settingManagerUserSettingManager<Omit<VSpeedUserSettingTypes, `vSpeedShow_${string}`>>A manager for reference V-speed user settings.
useFmsValuetrueWhether to support the V-speed's FMS-defined value.

Returns

MappedSubscribable<boolean>

A mapped subscribable which provides whether the specified reference V-speed is using its user-defined value as its active value.

Defined in

src/garminsdk/settings/VSpeedUserSettings.ts:122

isUserValueActive(name, settingManager, useFmsValue): MappedSubscribable<boolean>

Creates a mapped subscribable which provides whether a reference V-speed is using its user-defined value as its active value.

Parameters

NameTypeDescription
namestringThe name of the reference V-speed.
settingManagerUserSettingManager<Omit<VSpeedUserSettingTypes, `vSpeedFmsValue_${string}` | `vSpeedShow_${string}`>>A manager for reference V-speed user settings.
useFmsValuefalseWhether to support the V-speed's FMS-defined value.

Returns

MappedSubscribable<boolean>

A mapped subscribable which provides whether the specified reference V-speed is using its user-defined value as its active value.

Defined in

src/garminsdk/settings/VSpeedUserSettings.ts:136