Share via


AutofillManager.ShowAutofillDialog Method

Definition

Overloads

ShowAutofillDialog(View)

If autofill suggestions for a dialog-style UI are available for view, shows a dialog allowing the user to select a suggestion and returns true.

ShowAutofillDialog(View, Int32)

If autofill suggestions for a dialog-style UI are available for virtual view, shows a dialog allowing the user to select a suggestion and returns true.

ShowAutofillDialog(View)

If autofill suggestions for a dialog-style UI are available for view, shows a dialog allowing the user to select a suggestion and returns true.

[Android.Runtime.Register("showAutofillDialog", "(Landroid/view/View;)Z", "", ApiSince=33)]
public bool ShowAutofillDialog (Android.Views.View view);
[<Android.Runtime.Register("showAutofillDialog", "(Landroid/view/View;)Z", "", ApiSince=33)>]
member this.ShowAutofillDialog : Android.Views.View -> bool

Parameters

view
View

the view for which to show autofill suggestions. This is typically a view receiving a focus event. The autofill suggestions shown will include content for related views as well.

Returns

true if the autofill dialog is being shown

Attributes

Remarks

If autofill suggestions for a dialog-style UI are available for view, shows a dialog allowing the user to select a suggestion and returns true.

The dialog may not be shown if the autofill service does not support it, if the autofill request has not returned a response yet, if the dialog was shown previously, or if the input method is already shown.

It is recommended apps to call this method the first time a user focuses on an autofill-able form, and to avoid showing the input method if the dialog is shown. If this method returns false, you should then instead show the input method (assuming that is how the view normally handles the focus event). If the user re-focuses on the view, you should not call this method again so as to not disrupt usage of the input method.

Java documentation for android.view.autofill.AutofillManager.showAutofillDialog(android.view.View).

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

ShowAutofillDialog(View, Int32)

If autofill suggestions for a dialog-style UI are available for virtual view, shows a dialog allowing the user to select a suggestion and returns true.

[Android.Runtime.Register("showAutofillDialog", "(Landroid/view/View;I)Z", "", ApiSince=33)]
public bool ShowAutofillDialog (Android.Views.View view, int virtualId);
[<Android.Runtime.Register("showAutofillDialog", "(Landroid/view/View;I)Z", "", ApiSince=33)>]
member this.ShowAutofillDialog : Android.Views.View * int -> bool

Parameters

view
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

true if the autofill dialog is being shown

Attributes

Remarks

If autofill suggestions for a dialog-style UI are available for virtual view, shows a dialog allowing the user to select a suggestion and returns true.

The dialog may not be shown if the autofill service does not support it, if the autofill request has not returned a response yet, if the dialog was shown previously, or if the input method is already shown.

It is recommended apps to call this method the first time a user focuses on an autofill-able form, and to avoid showing the input method if the dialog is shown. If this method returns false, you should then instead show the input method (assuming that is how the view normally handles the focus event). If the user re-focuses on the view, you should not call this method again so as to not disrupt usage of the input method.

Java documentation for android.view.autofill.AutofillManager.showAutofillDialog(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