Freigeben über


AutofillManager.NotifyViewEntered Method

Definition

Overloads

NotifyViewEntered(View)

Called when a View that supports autofill is entered.

NotifyViewEntered(View, Int32, Rect)

Called when a virtual view that supports autofill is entered.

NotifyViewEntered(View)

Called when a View that supports autofill is entered.

[Android.Runtime.Register("notifyViewEntered", "(Landroid/view/View;)V", "", ApiSince=26)]
public void NotifyViewEntered (Android.Views.View view);
[<Android.Runtime.Register("notifyViewEntered", "(Landroid/view/View;)V", "", ApiSince=26)>]
member this.NotifyViewEntered : Android.Views.View -> unit

Parameters

view
View

View that was entered.

Attributes

Remarks

Called when a View that supports autofill is entered.

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

NotifyViewEntered(View, Int32, Rect)

Called when a virtual view that supports autofill is entered.

[Android.Runtime.Register("notifyViewEntered", "(Landroid/view/View;ILandroid/graphics/Rect;)V", "", ApiSince=26)]
public void NotifyViewEntered (Android.Views.View view, int virtualId, Android.Graphics.Rect absBounds);
[<Android.Runtime.Register("notifyViewEntered", "(Landroid/view/View;ILandroid/graphics/Rect;)V", "", ApiSince=26)>]
member this.NotifyViewEntered : 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

Called when a virtual view that supports autofill is entered.

The virtual view boundaries must be absolute screen coordinates. For example, if the parent, non-virtual 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]);

Java documentation for android.view.autofill.AutofillManager.notifyViewEntered(android.view.View, int, android.graphics.Rect).

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