TextToSpeechService.OnIsLanguageAvailable(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.
Checks whether the engine supports a given language.
[Android.Runtime.Register("onIsLanguageAvailable", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetOnIsLanguageAvailable_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")]
protected abstract int OnIsLanguageAvailable (string? lang, string? country, string? variant);
[<Android.Runtime.Register("onIsLanguageAvailable", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I", "GetOnIsLanguageAvailable_Ljava_lang_String_Ljava_lang_String_Ljava_lang_String_Handler")>]
abstract member OnIsLanguageAvailable : 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
Checks whether the engine supports a given language.
Can be called on multiple threads.
Its return values HAVE to be consistent with onLoadLanguage.
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.