Language

Dataset.Builder.SetId(String) Method

Definition

Sets the id for the dataset so its usage can be tracked.

[Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/service/autofill/Dataset$Builder;", "", ApiSince=26)]
public Android.Service.Autofill.Dataset.Builder SetId(string? id);
[<Android.Runtime.Register("setId", "(Ljava/lang/String;)Landroid/service/autofill/Dataset$Builder;", "", ApiSince=26)>]
member this.SetId : string -> Android.Service.Autofill.Dataset.Builder

Parameters

id
String

id for this dataset or null to unset.

Returns

this builder. This value cannot be null.

Attributes

Remarks

Sets the id for the dataset so its usage can be tracked.

Dataset usage can be tracked for 2 purposes: For statistical purposes, the service can call AutofillService.getFillEventHistory() when handling AutofillService.onFillRequest(FillRequest,android.os.CancellationSignal,FillCallback) calls; For normal autofill workflow, the service can call SaveRequest.getDatasetIds() when handling AutofillService.onSaveRequest(SaveRequest,SaveCallback) calls.

Android reference for android.service.autofill.Dataset.Builder.setId.

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