Share via


AutofillId.Create(View, Int32) Method

Definition

Creates an AutofillId with the virtual id.

[Android.Runtime.Register("create", "(Landroid/view/View;I)Landroid/view/autofill/AutofillId;", "", ApiSince=34)]
public static Android.Views.Autofill.AutofillId Create (Android.Views.View host, int virtualId);
[<Android.Runtime.Register("create", "(Landroid/view/View;I)Landroid/view/autofill/AutofillId;", "", ApiSince=34)>]
static member Create : Android.Views.View * int -> Android.Views.Autofill.AutofillId

Parameters

host
View

the view hosting the virtual view hierarchy which is used to show autofill suggestions.

virtualId
Int32

id identifying the virtual view inside the host view.

Returns

an AutofillId for the virtual view

Attributes

Remarks

Creates an AutofillId with the virtual id.

This method is used by a View that contains the virtual view hierarchy. Use this method to create the AutofillId for each virtual view.

Java documentation for android.view.autofill.AutofillId.create(android.view.View, 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