Added in API level 28

Match


class Match
kotlin.Any
   ↳ android.service.autofill.FieldClassification.Match

Represents the score of a UserData entry for the field.

Summary

Public methods
String

Gets the category id of the UserData entry.

Float

Gets a classification score for the value of this field compared to the value of the UserData entry.

String

Public methods

getCategoryId

Added in API level 28
fun getCategoryId(): String

Gets the category id of the UserData entry.

Return
String This value cannot be null.

getScore

Added in API level 28
fun getScore(): Float

Gets a classification score for the value of this field compared to the value of the UserData entry.

The score is based in a comparison of the field value and the user data entry, and it ranges from 0.0F to 1.0F:

  • 1.0F represents a full match (100%).
  • 0.0F represents a full mismatch (0%).
  • Any other value is a partial match.

How the score is calculated depends on the algorithm used.

toString

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