TextLanguage.GetLocale(Int32) Method

Definition

Returns the language locale at the specified index.

[Android.Runtime.Register("getLocale", "(I)Landroid/icu/util/ULocale;", "", ApiSince=29)]
public Android.Icu.Util.ULocale GetLocale(int index);
[<Android.Runtime.Register("getLocale", "(I)Landroid/icu/util/ULocale;", "", ApiSince=29)>]
member this.GetLocale : int -> Android.Icu.Util.ULocale

Parameters

index
Int32

int

Returns

This value cannot be null.

Attributes

Remarks

Returns the language locale at the specified index. Locales are ordered from high confidence to low confidence. See getLocaleHypothesisCount() for the number of locales available.

Throws: IndexOutOfBoundsException if the specified index is out of range.

Android reference for android.view.textclassifier.TextLanguage.getLocale.

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