Język

UserData.Builder.SetFieldClassificationAlgorithm(String, Bundle) Method

Definition

Sets the default algorithm used for field classification.

[Android.Runtime.Register("setFieldClassificationAlgorithm", "(Ljava/lang/String;Landroid/os/Bundle;)Landroid/service/autofill/UserData$Builder;", "", ApiSince=28)]
public Android.Service.Autofill.UserData.Builder SetFieldClassificationAlgorithm(string? name, Android.OS.Bundle? args);
[<Android.Runtime.Register("setFieldClassificationAlgorithm", "(Ljava/lang/String;Landroid/os/Bundle;)Landroid/service/autofill/UserData$Builder;", "", ApiSince=28)>]
member this.SetFieldClassificationAlgorithm : string * Android.OS.Bundle -> Android.Service.Autofill.UserData.Builder

Parameters

name
String

name of the algorithm or null to used default.

args
Bundle

optional arguments to the algorithm. This value may be null.

Returns

this builder. This value cannot be null.

Attributes

Remarks

Sets the default algorithm used for field classification.

The currently available algorithms can be retrieve through AutofillManager.getAvailableFieldClassificationAlgorithms().

If not set, the default algorithm is used instead.

Android reference for android.service.autofill.UserData.Builder.setFieldClassificationAlgorithm.

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