FieldClassification.Match.Score Property

Definition

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

public float Score { [Android.Runtime.Register("getScore", "()F", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getScore", "()F", "", ApiSince=28)>]
member this.Score : single

Property Value

Attributes

Remarks

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: <ul> <li>1.0F represents a full match (100%). <li>0.0F represents a full mismatch (0%). <li>Any other value is a partial match. </ul>

How the score is calculated depends on the UserData.Builder#setFieldClassificationAlgorithm(String, android.os.Bundle) algorithm used.

Java documentation for android.service.autofill.FieldClassification.Match.getScore().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to