TextToSpeechService.OnLoadLanguage(String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies the engine that it should load a speech synthesis language.
[Android.Runtime.Register("onLoadLanguage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetOnLoadLanguage_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
protected abstract int OnLoadLanguage (string? lang, string? country, string? variant);
[<Android.Runtime.Register("onLoadLanguage", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetOnLoadLanguage_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member OnLoadLanguage : string * string * string -> int
Parameters
- lang
- String
ISO-3 language code.
- country
- String
ISO-3 country code. May be empty or null.
- variant
- String
Language variant. May be empty or null.
Returns
Code indicating the support status for the locale.
One of TextToSpeech#LANG_AVAILABLE
,
TextToSpeech#LANG_COUNTRY_AVAILABLE
,
TextToSpeech#LANG_COUNTRY_VAR_AVAILABLE
,
TextToSpeech#LANG_MISSING_DATA
TextToSpeech#LANG_NOT_SUPPORTED
.
- Attributes
Remarks
Notifies the engine that it should load a speech synthesis language. There is no guarantee that this method is always called before the language is used for synthesis. It is merely a hint to the engine that it will probably get some synthesis requests for this language at some point in the future.
Can be called on multiple threads. In <= Android 4.2 (<= API 17) can be called on main and service binder threads. In > Android 4.2 (> API 17) can be called on main and synthesis threads.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.