Language

FillResponse.Builder.AddDataset(Dataset) Method

Definition

Adds a new Dataset to this response.

[Android.Runtime.Register("addDataset", "(Landroid/service/autofill/Dataset;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=26)]
public Android.Service.Autofill.FillResponse.Builder AddDataset(Android.Service.Autofill.Dataset? dataset);
[<Android.Runtime.Register("addDataset", "(Landroid/service/autofill/Dataset;)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=26)>]
member this.AddDataset : Android.Service.Autofill.Dataset -> Android.Service.Autofill.FillResponse.Builder

Parameters

dataset
Dataset

Returns

This builder. This value cannot be null.

Attributes

Remarks

Adds a new Dataset to this response.

Note: on Android Build.VERSION_CODES.O, the total number of datasets is limited by the Binder transaction size, so it's recommended to keep it small (in the range of 10-20 at most) and use pagination by adding a fake authenticated dataset at the end with a presentation string like "Next 10" that would return a new FillResponse with the next 10 datasets, and so on. This limitation was lifted on Android Build.VERSION_CODES.O_MR1, although the Binder transaction size can still be reached if each dataset itself is too big.

Android reference for android.service.autofill.FillResponse.Builder.addDataset.

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