語言

TextLanguage.GetLocale(Int32) 方法

定義

回傳指定索引的語言位置。

[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

參數

index
Int32

int

傳回

這個值不可能為零值。

屬性

備註

回傳指定索引的語言位置。 地點依高信心到低信心排序。 請參閱 getLocaleHypothesisCount() 以獲得可用地點數量。

拋出:若指定的索引超出範圍,則使用 IndexOutOfBoundsException。

Android 參考資料。android.view.textclassifier.TextLanguage.getLocale

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於