Condividi tramite


AutofillManager.UserDataId Property

Definition

Gets the id of the UserData used for field classification.

public string? UserDataId { [Android.Runtime.Register("getUserDataId", "()Ljava/lang/String;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getUserDataId", "()Ljava/lang/String;", "", ApiSince=28)>]
member this.UserDataId : string

Property Value

id of the UserData previously set by #setUserData(UserData) or null if it was reset or if the caller currently does not have an enabled autofill service for the user.

Attributes

Remarks

Gets the id of the UserData used for field classification.

This method is useful when the service must check the status of the UserData in the device without fetching the whole object.

<b>Note:</b> This method should only be called by an app providing an autofill service, and it's ignored if the caller currently doesn't have an enabled autofill service for the user.

Java documentation for android.view.autofill.AutofillManager.getUserDataId().

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