setFocused

open fun setFocused(focused: Boolean)(source)

Sets whether this node is focused.

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

Parameters

focused

True if the node is focused.

Throws

If called from an AccessibilityService.