TextLanguage.GetLocale(Int32) Method

Definition

Returns the language locale at the specified index.

C#
[Android.Runtime.Register("getLocale", "(I)Landroid/icu/util/ULocale;", "", ApiSince=29)]
public Android.Icu.Util.ULocale GetLocale (int index);

Parameters

index
Int32

Returns

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.

Java documentation for android.view.textclassifier.TextLanguage.getLocale(int).

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

Product Versions
.NET for Android .NET for Android API 34, .NET for Android API 35