performAction

open fun performAction(action: Int): Boolean(source)

Performs an action on the node.

Note: An action can be performed only if the request is made from an android.accessibilityservice.AccessibilityService.

Return

True if the action was performed.

Parameters

action

The action to perform.

Throws

If called outside of an AccessibilityService.


open fun performAction(action: Int, arguments: Bundle): Boolean(source)

Performs an action on the node.

Note: An action can be performed only if the request is made from an android.accessibilityservice.AccessibilityService.

Return

True if the action was performed.

Parameters

action

The action to perform.

arguments

A bundle with additional arguments.

Throws

If called outside of an AccessibilityService.