Share via


AccessibilityNodeInfo.GetBoundsInScreen(Rect) Method

Definition

Gets the node bounds in screen coordinates.

[Android.Runtime.Register("getBoundsInScreen", "(Landroid/graphics/Rect;)V", "GetGetBoundsInScreen_Landroid_graphics_Rect_Handler")]
public virtual void GetBoundsInScreen (Android.Graphics.Rect? outBounds);
[<Android.Runtime.Register("getBoundsInScreen", "(Landroid/graphics/Rect;)V", "GetGetBoundsInScreen_Landroid_graphics_Rect_Handler")>]
abstract member GetBoundsInScreen : Android.Graphics.Rect -> unit
override this.GetBoundsInScreen : Android.Graphics.Rect -> unit

Parameters

outBounds
Rect

The output node bounds.

Attributes

Remarks

Gets the node bounds in screen coordinates.

When magnification is enabled, the bounds in screen are scaled up by magnification scale and the positions are also adjusted according to the offset of magnification viewport. For example, it returns Rect(-180, -180, 0, 0) for original bounds Rect(10, 10, 100, 100), when the magnification scale is 2 and offsets for X and Y are both 200. <p/>

Java documentation for android.view.accessibility.AccessibilityNodeInfo.getBoundsInScreen(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