Skip to main content

Class: G3XUnitsUtils

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Units/G3XUnitsUtils.ts:9

A utility class for working with G3X Touch measurement units.

Constructors​

Constructor​

new G3XUnitsUtils(): G3XUnitsUtils

Returns​

G3XUnitsUtils

Methods​

getFuelEconomyUnitsSettingModes()​

static getFuelEconomyUnitsSettingModes(fuelType): G3XUnitsFuelEconomySettingMode[]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Units/G3XUnitsUtils.ts:57

Gets an array of supported fuel economy units setting modes for a given fuel type.

Parameters​

ParameterTypeDescription
fuelTypeG3XUnitsFuelTypeThe fuel type for which to get the supported setting modes.

Returns​

G3XUnitsFuelEconomySettingMode[]

An array of supported fuel economy units setting modes for the specified fuel type. The default mode is guaranteed to be the first element in the array.


getFuelUnitsSettingModes()​

static getFuelUnitsSettingModes(fuelType): UnitsFuelSettingMode[]

Defined in: src/workingtitle-instruments-g3x-touch/html_ui/Shared/Units/G3XUnitsUtils.ts:16

Gets an array of supported fuel units setting modes for a given fuel type.

Parameters​

ParameterTypeDescription
fuelTypeG3XUnitsFuelTypeThe fuel type for which to get the supported setting modes.

Returns​

UnitsFuelSettingMode[]

An array of supported fuel units setting modes for the specified fuel type. The default mode is guaranteed to be the first element in the array.