setSelection

open fun setSelection(@Nullable selection: @Nullable AccessibilityNodeInfoCompat.SelectionCompat)

Sets the selection of this node.

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

Parameters

selection

The selection, or null to clear the selection. Compatibility:

  • API <: 36.1: Do nothing

Throws

If called from an AccessibilityService.