Dataset.Builder.SetId(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 read FillEventHistory when handling OnFillRequest(FillRequest, CancellationSignal, FillCallback) calls; For normal autofill workflow, the service can read DatasetIds when handling 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.