Freigeben über


TextToSpeech.DefaultLanguage Property

Definition

Caution

deprecated

Returns a Locale instance describing the language currently being used as the default Text-to-speech language.

[System.Obsolete("deprecated")]
public virtual Java.Util.Locale? DefaultLanguage { [Android.Runtime.Register("getDefaultLanguage", "()Ljava/util/Locale;", "GetGetDefaultLanguageHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getDefaultLanguage", "()Ljava/util/Locale;", "GetGetDefaultLanguageHandler")>]
member this.DefaultLanguage : Java.Util.Locale

Property Value

language, country (if any) and variant (if any) used by the client stored in a Locale instance, or null on error.

Attributes

Remarks

Returns a Locale instance describing the language currently being used as the default Text-to-speech language.

The locale object returned by this method is NOT a valid one. It has identical form to the one in #getLanguage(). Please refer to #getLanguage() for more information.

This member is deprecated. As of API level 21, use getDefaultVoice().getLocale() (#getDefaultVoice())

Java documentation for android.speech.tts.TextToSpeech.getDefaultLanguage().

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