TtsLocalizationService class Core

Localization service to retrieve localized strings.

This class provides methods to get localized strings based on string IDs. The returned strings are localized according to the current SdkSettings.language setting.

Usually it is used by the Magic Lane products but the ids from LocalizationStringIds might be valuable for all API users.

Also see:

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getLanguageNativeName(Language language) String
Retrieves the native name of the given language.
getString(int stringId, {bool useDefaultString = false}) String
Text-to-speech localization service used to retrieve localized strings for voice synthesis.
getStrings(List<int> stringIds, {bool useDefaultString = false}) List<String>
Retrieves multiple localized strings for the given list of stringIds.