Compartilhar via


AccessibilityNodeInfo.SetBoundsInWindow(Rect) Method

Definition

Sets the node bounds in window coordinates.

[Android.Runtime.Register("setBoundsInWindow", "(Landroid/graphics/Rect;)V", "GetSetBoundsInWindow_Landroid_graphics_Rect_Handler", ApiSince=34)]
public virtual void SetBoundsInWindow (Android.Graphics.Rect bounds);
[<Android.Runtime.Register("setBoundsInWindow", "(Landroid/graphics/Rect;)V", "GetSetBoundsInWindow_Landroid_graphics_Rect_Handler", ApiSince=34)>]
abstract member SetBoundsInWindow : Android.Graphics.Rect -> unit
override this.SetBoundsInWindow : Android.Graphics.Rect -> unit

Parameters

bounds
Rect

The node bounds.

Attributes

Remarks

Sets the node bounds in window coordinates.

<strong>Note:</strong> Cannot be called from an android.accessibilityservice.AccessibilityService. This class is made immutable before being delivered to an AccessibilityService.

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