Language

FillResponse.Builder.SetIconResourceId(Int32) Method

Definition

Overwrites Save/Fill dialog header icon with a specific one specified by resource id.

[Android.Runtime.Register("setIconResourceId", "(I)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=34)]
public Android.Service.Autofill.FillResponse.Builder SetIconResourceId(int id);
[<Android.Runtime.Register("setIconResourceId", "(I)Landroid/service/autofill/FillResponse$Builder;", "", ApiSince=34)>]
member this.SetIconResourceId : int -> Android.Service.Autofill.FillResponse.Builder

Parameters

id
Int32

Drawable resource id of the icon to be used. A value of 0 indicates to use the default header icon.

Returns

this builder. This value cannot be null.

Attributes

Remarks

Overwrites Save/Fill dialog header icon with a specific one specified by resource id. The image is pulled from the package, so id should be defined in the manifest.

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

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