unitSystem property
Get the unit system used by the SDK.
Returns
- The unit system
Throws
- An exception if it fails.
Implementation
static UnitSystem get unitSystem {
final OperationResult resultString = staticMethod(
'SdkSettings',
'getUnitSystem',
);
return UnitSystemExtension.fromId(resultString['result']);
}
Set the unit system to be used by the SDK.
This setting will affect the text of the route / navigation instructions and the voice instructions.
Parameters
- IN unitSystem The unit system to be used
Throws
- An exception if it fails.
Implementation
static set unitSystem(UnitSystem unitSystem) {
objectMethod(0, 'SdkSettings', 'setUnitSystem', args: unitSystem.id);
}