Stay organized with collections
Save and categorize content based on your preferences.
FieldClassification
class FieldClassification
Represents the field classification results for a given field.
Summary
Nested classes |
|
Represents the score of a UserData entry for the field.
|
Public methods
getMatches
fun getMatches(): MutableList<FieldClassification.Match!>
Gets the matches
with the highest scores
(sorted in descending order).
Note: There's no guarantee of how many matches will be returned. In fact, the Android System might return just the top match to minimize the impact of field classification in the device's health.
toString
fun toString(): String
Return |
String |
a string representation of the object. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# FieldClassification\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nFieldClassification\n===================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/service/autofill/FieldClassification \"View this page in Java\") \n\n```\nclass FieldClassification\n```\n\n|---|---------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.service.autofill.FieldClassification](#) |\n\nRepresents the [field classification](/reference/kotlin/android/service/autofill/AutofillService#FieldClassification) results for a given field.\n\nSummary\n-------\n\n| Nested classes ||\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [Match](/reference/kotlin/android/service/autofill/FieldClassification.Match) Represents the score of a [UserData](/reference/kotlin/android/service/autofill/UserData) entry for the field. |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\\\u003c[FieldClassification.Match](/reference/kotlin/android/service/autofill/FieldClassification.Match)!\\\u003e | [getMatches](#getMatches())`()` Gets the [matches](/reference/kotlin/android/service/autofill/FieldClassification.Match) with the highest [scores](/reference/kotlin/android/service/autofill/FieldClassification.Match#getScore()) (sorted in descending order). |\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](#toString())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getMatches\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getMatches(): MutableList\u003cFieldClassification.Match!\u003e\n```\n\nGets the [matches](/reference/kotlin/android/service/autofill/FieldClassification.Match) with the highest [scores](/reference/kotlin/android/service/autofill/FieldClassification.Match#getScore()) (sorted in descending order).\n\n**Note:** There's no guarantee of how many matches will be returned. In fact, the Android System might return just the top match to minimize the impact of field classification in the device's health.\n\n| Return ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------|\n| [MutableList](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-list/index.html)\u003c[FieldClassification.Match](/reference/kotlin/android/service/autofill/FieldClassification.Match)!\u003e | This value cannot be `null`. |\n\n### toString\n\nAdded in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun toString(): String\n```\n\n| Return ||\n|----------------------------------------------------------------------------------|----------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |"]]