setBoundsInWindow

open fun setBoundsInWindow(@NonNull bounds: Rect)(source)

Sets the node bounds in window coordinates.

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

Compatibility:

  • API <19: No-op

Parameters

bounds

The node bounds.

Throws

If called from an AccessibilityService.