Share via


TextToSpeechService.OnIsLanguageAvailable(String, String, String) Method

Definition

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_DATATextToSpeech#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.

Java documentation for android.speech.tts.TextToSpeechService.onIsLanguageAvailable(java.lang.String, java.lang.String, java.lang.String).

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.

Applies to