Share via


EditorInfo.AutofillId Property

Definition

Returns the AutofillId of the view that this EditorInfo is associated with. -or- Sets the AutofillId of the view that this EditorInfo is associated with.

public virtual Android.Views.Autofill.AutofillId? AutofillId { [Android.Runtime.Register("getAutofillId", "()Landroid/view/autofill/AutofillId;", "GetGetAutofillIdHandler", ApiSince=36)] get; [Android.Runtime.Register("setAutofillId", "(Landroid/view/autofill/AutofillId;)V", "GetSetAutofillId_Landroid_view_autofill_AutofillId_Handler", ApiSince=36)] set; }
[<get: Android.Runtime.Register("getAutofillId", "()Landroid/view/autofill/AutofillId;", "GetGetAutofillIdHandler", ApiSince=36)>]
[<set: Android.Runtime.Register("setAutofillId", "(Landroid/view/autofill/AutofillId;)V", "GetSetAutofillId_Landroid_view_autofill_AutofillId_Handler", ApiSince=36)>]
member this.AutofillId : Android.Views.Autofill.AutofillId with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the AutofillId of the view that this EditorInfo is associated with. The value is filled in with the result of android.view.View#getAutofillId() View.getAutofillId() on the view that is being edited.

Note: For virtual view(e.g. Compose or Webview), default behavior is the autofillId is the id of the container view, unless the virtual view provider sets the virtual id when the InputMethodManager calls android.view.View#onCreateInputConnection() on the container view.

Java documentation for android.view.inputmethod.EditorInfo.getAutofillId().

Property setter documentation:

Sets the AutofillId of the view that this EditorInfo is associated with.

Java documentation for android.view.inputmethod.EditorInfo.setAutofillId(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