FieldClassification
class FieldClassification : Parcelable
| kotlin.Any | |
| ↳ | android.service.assist.classification.FieldClassification |
Represents a classified field from the detection service.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
FieldClassification(autofillId: AutofillId, hints: MutableSet<String!>)Creates a new FieldClassification. |
|
| Public methods | |
|---|---|
| Int |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| AutofillId |
Autofill id of the detected field. |
| MutableSet<String!> |
getHints()Detected fields types represented as autofill hints. |
| String |
toString()Returns a string representation of the object. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Flatten this object in to a Parcel. |
| Properties | |
|---|---|
| static Parcelable.Creator<FieldClassification!> | |
Public constructors
FieldClassification
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
fun describeContents(): Int
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(android.os.Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
getAutofillId
fun getAutofillId(): AutofillId
Autofill id of the detected field.
| Return | |
|---|---|
AutofillId |
This value cannot be null. |
getHints
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
fun toString(): String
Returns a string representation of the object.
| Return | |
|---|---|
String |
a string representation of the object. |
writeToParcel
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 the following:
|