語言

TextClassification.GetEntity(Int32) 方法

定義

回傳該實體在指定的索引上。

[Android.Runtime.Register("getEntity", "(I)Ljava/lang/String;", "", ApiSince=26)]
[Android.Runtime.StringDef(Fields=new System.String[] { "TypeUnknown", "TypeOther", "TypeEmail", "TypePhone", "TypeAddress", "TypeUrl", "TypeDate", "TypeDateTime", "TypeFlightNumber", "TypeOtp", "TypeSmsRetrieverOtp", "TypeSmsWebOtp" }, Type="Android.Views.TextClassifiers.ITextClassifier")]
public string GetEntity(int index);
[<Android.Runtime.Register("getEntity", "(I)Ljava/lang/String;", "", ApiSince=26)>]
[<Android.Runtime.StringDef(Fields=new System.String[] { "TypeUnknown", "TypeOther", "TypeEmail", "TypePhone", "TypeAddress", "TypeUrl", "TypeDate", "TypeDateTime", "TypeFlightNumber", "TypeOtp", "TypeSmsRetrieverOtp", "TypeSmsWebOtp" }, Type="Android.Views.TextClassifiers.ITextClassifier")>]
member this.GetEntity : int -> string

參數

index
Int32

int

傳回

這個值不可能為零值。 價值是以下之一:TextClassifier.TYPE_UNKNOWN TextClassifier.TYPE_OTHER TextClassifier.TYPE_EMAIL TextClassifier.TYPE_PHONE TextClassifier.TYPE_ADDRESS TextClassifier.TYPE_URL TextClassifier.TYPE_DATE TextClassifier.TYPE_DATE_TIME TextClassifier.TYPE_FLIGHT_NUMBER TextClassifier.TYPE_OTP TextClassifier.TYPE_SMS_RETRIEVER_OTP TextClassifier.TYPE_SMS_WEB_OTP

屬性

備註

回傳該實體在指定的索引上。 實體的排序是從高信心到低信心。

另請參閱:

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

Android 參考資料。android.view.textclassifier.TextClassification.getEntity

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

適用於