language property

Language get language

Returns the currently selected API language.

Returns

  • Language: the active language used by the SDK API.

Also see:

Implementation

static Language get language {
  final OperationResult resultString = staticMethod(
    'SdkSettings',
    'getLanguage',
  );

  return Language.fromJson(resultString['result']);
}
set language (Language language)

Sets the SDK API language.

This affects map labels, routing instructions and other API-generated text.

This does not affect the current voice. The API user is responsible for setting the desired TTS voice separately via setTTSVoiceByLanguage or setVoiceByPath.

Parameters

  • language: the Language to set as the active API language.

Implementation

static set language(Language language) {
  staticMethod('SdkSettings', 'setLanguage', args: language);
}