Added in API level 34

FieldClassification


class FieldClassification : Parcelable
kotlin.Any
   ↳ android.service.assist.classification.FieldClassification

Represents a classified field from the detection service.

Summary

Inherited constants
Public constructors

Creates a new FieldClassification.

Public methods
Int

AutofillId

Autofill id of the detected field.

MutableSet<String!>

Detected fields types represented as autofill hints.

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<FieldClassification!>

Public constructors

FieldClassification

Added in API level 34
FieldClassification(
    autofillId: AutofillId,
    hints: MutableSet<String!>)

Creates a new FieldClassification.

Parameters
autofillId AutofillId: Autofill id of the detected field This value cannot be null.
hints MutableSet<String!>: Detected fields types represented as autofill hints. A particular field can be detected as multiple types. For eg: A sign-in field may take in a username, an email address or a phone number. In such cases, it should be detected as "username", "emailAddress" and "phoneNumber" This value cannot be null.

Public methods

describeContents

Added in API level 34
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

getAutofillId

Added in API level 34
fun getAutofillId(): AutofillId

Autofill id of the detected field.

Return
AutofillId This value cannot be null.

getHints

Added in API level 34
fun getHints(): MutableSet<String!>

Detected fields types represented as autofill hints. A particular field can be detected as multiple types. For eg: A sign-in field may take in a username, an email address or a phone number. In such cases, it should be detected as "username", "emailAddress" and "phoneNumber" The value of these hints are contained in androidx.autofill.HintConstants

Return
MutableSet<String!> This value cannot be null.

toString

Added in API level 34
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 34
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

Flatten this object in to a Parcel.

Parameters
dest Parcel: This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 34
static val CREATOR: Parcelable.Creator<FieldClassification!>