Udostępnij za pośrednictwem


SaveInfo.Builder Constructors

Definition

Overloads

SaveInfo.Builder(SaveDataType)

Creates a new builder when no id is required.

SaveInfo.Builder(SaveDataType, AutofillId[])

Creates a new builder.

SaveInfo.Builder(SaveDataType)

Creates a new builder when no id is required.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=27)]
public Builder (Android.Service.Autofill.SaveDataType type);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=27)>]
new Android.Service.Autofill.SaveInfo.Builder : Android.Service.Autofill.SaveDataType -> Android.Service.Autofill.SaveInfo.Builder

Parameters

type
SaveDataType

the type of information the associated FillResponse represents. It can be any combination of SaveInfo#SAVE_DATA_TYPE_GENERIC, SaveInfo#SAVE_DATA_TYPE_PASSWORD, SaveInfo#SAVE_DATA_TYPE_ADDRESS, SaveInfo#SAVE_DATA_TYPE_CREDIT_CARD, SaveInfo#SAVE_DATA_TYPE_DEBIT_CARD, SaveInfo#SAVE_DATA_TYPE_PAYMENT_CARD, SaveInfo#SAVE_DATA_TYPE_GENERIC_CARD, SaveInfo#SAVE_DATA_TYPE_USERNAME, or SaveInfo#SAVE_DATA_TYPE_EMAIL_ADDRESS.

        &lt;p&gt;See <code data-dev-comment-type="c">SaveInfo</code> for more info.
Attributes

Remarks

Creates a new builder when no id is required.

When using this builder, caller must call #setOptionalIds(AutofillId[]) before calling #build().

Java documentation for android.service.autofill.SaveInfo.Builder.SaveInfo$Builder(int).

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

SaveInfo.Builder(SaveDataType, AutofillId[])

Creates a new builder.

[Android.Runtime.Register(".ctor", "(I[Landroid/view/autofill/AutofillId;)V", "", ApiSince=26)]
public Builder (Android.Service.Autofill.SaveDataType type, Android.Views.Autofill.AutofillId[] requiredIds);
[<Android.Runtime.Register(".ctor", "(I[Landroid/view/autofill/AutofillId;)V", "", ApiSince=26)>]
new Android.Service.Autofill.SaveInfo.Builder : Android.Service.Autofill.SaveDataType * Android.Views.Autofill.AutofillId[] -> Android.Service.Autofill.SaveInfo.Builder

Parameters

type
SaveDataType

the type of information the associated FillResponse represents. It can be any combination of SaveInfo#SAVE_DATA_TYPE_GENERIC, SaveInfo#SAVE_DATA_TYPE_PASSWORD, SaveInfo#SAVE_DATA_TYPE_ADDRESS, SaveInfo#SAVE_DATA_TYPE_CREDIT_CARD, SaveInfo#SAVE_DATA_TYPE_DEBIT_CARD, SaveInfo#SAVE_DATA_TYPE_PAYMENT_CARD, SaveInfo#SAVE_DATA_TYPE_GENERIC_CARD, SaveInfo#SAVE_DATA_TYPE_USERNAME, or SaveInfo#SAVE_DATA_TYPE_EMAIL_ADDRESS.

requiredIds
AutofillId[]

ids of all required views that will trigger a save request.

        &lt;p&gt;See <code data-dev-comment-type="c">SaveInfo</code> for more info.
Attributes

Remarks

Creates a new builder.

Java documentation for android.service.autofill.SaveInfo.Builder.SaveInfo$Builder(int, android.view.autofill.AutofillId[]).

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