Language

SaveInfo.Builder.SetPositiveAction(Int32) Method

Definition

Sets the style for the positive save action.

[Android.Runtime.Register("setPositiveAction", "(I)Landroid/service/autofill/SaveInfo$Builder;", "", ApiSince=30)]
public Android.Service.Autofill.SaveInfo.Builder SetPositiveAction(int style);
[<Android.Runtime.Register("setPositiveAction", "(I)Landroid/service/autofill/SaveInfo$Builder;", "", ApiSince=30)>]
member this.SetPositiveAction : int -> Android.Service.Autofill.SaveInfo.Builder

Parameters

style
Int32

The action style. Value is one of the following: SaveInfo.POSITIVE_BUTTON_STYLE_SAVE; SaveInfo.POSITIVE_BUTTON_STYLE_CONTINUE

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the style for the positive save action.

This allows an autofill service to customize the style of the positive action in the save UI. Note that selecting the positive action regardless of its style would dismiss the save UI and calling into the save request. The service should take the next action if selecting style SaveInfo.POSITIVE_BUTTON_STYLE_CONTINUE. The default style is SaveInfo.POSITIVE_BUTTON_STYLE_SAVE

Android reference for android.service.autofill.SaveInfo.Builder.setPositiveAction.

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