TextSelection.GetEntity(Int32) Method

Definition

Returns the entity at the specified 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" }, 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" }, 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" }, Type="Android.Views.TextClassifiers.ITextClassifier")>]
member this.GetEntity : int -> string
[<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" }, Type="Android.Views.TextClassifiers.ITextClassifier")>]
member this.GetEntity : int -> string

Parameters

index
Int32

int

Returns

This value cannot be null. Value is one of the following: 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

Attributes

Remarks

Returns the entity at the specified index. Entities are ordered from high confidence to low confidence.

See also:

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

Android reference for android.view.textclassifier.TextSelection.getEntity.

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