ReactAccessibilityDelegate

Utility class that handles the addition of a "role" for accessibility to either a View or AccessibilityNodeInfo.

Constructors

Link copied to clipboard
constructor(view: View, originalFocus: Boolean, originalImportantForAccessibility: Int)

Types

Link copied to clipboard
These roles are defined by Google's TalkBack screen reader, and this list should be kept up to date with their implementation.
Link copied to clipboard
enum Role
An ARIA Role representable by View's `role` prop.

Properties

Link copied to clipboard
val HOST_ID: Int = -1
Link copied to clipboard
val INVALID_ID: Int = -2147483648
Link copied to clipboard
Link copied to clipboard
val TOP_ACCESSIBILITY_ACTION_EVENT: String = "topAccessibilityAction"

Functions

Link copied to clipboard
Link copied to clipboard
Returns a cached instance if such is available otherwise a new one.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Creates the text that Google's TalkBack screen reader will read aloud for a given View.
Link copied to clipboard
Determines if the supplied View and AccessibilityNodeInfoCompat has any children which are not independently accessibility focusable and also have a spoken description.
Link copied to clipboard
Link copied to clipboard
Returns whether the node has valid RangeInfo.
Link copied to clipboard
Link copied to clipboard
fun invalidateVirtualView(virtualViewId: Int)
Link copied to clipboard
Determines if the provided View and AccessibilityNodeInfoCompat meet the criteria for gaining accessibility focus.
Link copied to clipboard
Returns whether a node is actionable.
Link copied to clipboard
Returns whether the supplied View and AccessibilityNodeInfoCompat would produce spoken feedback if it were accessibility focused.
Link copied to clipboard
fun onFocusChanged(gainFocus: Boolean, direction: Int, previouslyFocusedRect: Rect)
Link copied to clipboard
Link copied to clipboard
open fun performAccessibilityAction(host: View, action: Int, args: Bundle): Boolean
Link copied to clipboard
open fun resetDelegate(view: View, originalFocus: Boolean, originalImportantForAccessibility: Int)
Link copied to clipboard
open fun sendAccessibilityEvent(host: View, eventType: Int)
Link copied to clipboard
fun sendEventForVirtualView(virtualViewId: Int, eventType: Int): Boolean
Link copied to clipboard
open fun setDelegate(view: View, originalFocus: Boolean, originalImportantForAccessibility: Int)
Link copied to clipboard