Langage

TextClassification.GetEntity(Int32) Méthode

Définition

Retourne l’entité à l’index spécifié.

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

Paramètres

index
Int32

int

Retours

Cette valeur ne peut pas être null. La valeur est l’une des valeurs suivantes : 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

Attributs

Remarques

Retourne l’entité à l’index spécifié. Les entités sont classées de confiance élevée à faible confiance.

Voir aussi :

Lève : IndexOutOfBoundsException si l’index spécifié est hors plage.

Référence Android pour android.view.textclassifier.TextClassification.getEntity.

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à