AutofillManager.RequestAutofill Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RequestAutofill(View) |
Explicitly requests a new autofill context. |
RequestAutofill(View, Int32, Rect) |
Explicitly requests a new autofill context for virtual views. |
RequestAutofill(View)
Explicitly requests a new autofill context.
[Android.Runtime.Register("requestAutofill", "(Landroid/view/View;)V", "", ApiSince=26)]
public void RequestAutofill (Android.Views.View view);
[<Android.Runtime.Register("requestAutofill", "(Landroid/view/View;)V", "", ApiSince=26)>]
member this.RequestAutofill : Android.Views.View -> unit
Parameters
- view
- View
view requesting the new autofill context.
- Attributes
Remarks
Explicitly requests a new autofill context.
Normally, the autofill context is automatically started if necessary when #notifyViewEntered(View)
is called, but this method should be used in the cases where it must be explicitly started. For example, when the view offers an AUTOFILL option on its contextual overflow menu, and the user selects it.
Java documentation for android.view.autofill.AutofillManager.requestAutofill(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
RequestAutofill(View, Int32, Rect)
Explicitly requests a new autofill context for virtual views.
[Android.Runtime.Register("requestAutofill", "(Landroid/view/View;ILandroid/graphics/Rect;)V", "", ApiSince=26)]
public void RequestAutofill (Android.Views.View view, int virtualId, Android.Graphics.Rect absBounds);
[<Android.Runtime.Register("requestAutofill", "(Landroid/view/View;ILandroid/graphics/Rect;)V", "", ApiSince=26)>]
member this.RequestAutofill : Android.Views.View * int * Android.Graphics.Rect -> unit
Parameters
- view
- View
the virtual view parent.
- virtualId
- Int32
id identifying the virtual child inside the parent view.
- absBounds
- Rect
absolute boundaries of the virtual view in the screen.
- Attributes
Remarks
Explicitly requests a new autofill context for virtual views.
Normally, the autofill context is automatically started if necessary when #notifyViewEntered(View, int, Rect)
is called, but this method should be used in the cases where it must be explicitly started. For example, when the virtual view offers an AUTOFILL option on its contextual overflow menu, and the user selects it.
The virtual view boundaries must be absolute screen coordinates. For example, if the parent view uses bounds
to draw the virtual view inside its Canvas, the absolute bounds could be calculated by:
int offset[] = new int[2];
getLocationOnScreen(offset);
Rect absBounds = new Rect(bounds.left + offset[0],
bounds.top + offset[1],
bounds.right + offset[0], bounds.bottom + offset[1]);
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.