sendAccessibilityEvent

open fun sendAccessibilityEvent(surfaceId: Int, reactTag: Int, eventType: Int)

Send an accessibility eventType to a Native View. eventType is any valid `AccessibilityEvent.X` value.

Why accept {@ViewUtil.NO_SURFACE_ID}(-1) SurfaceId? Currently there are calls to UIManager.sendAccessibilityEvent which is a legacy API and accepts only reactTag. We will have to investigate and migrate away from those calls over time.

Parameters

surfaceId

that identifies the surface or {@ViewUtil.NO_SURFACE_ID}(-1) to temporarily support backward compatibility.

reactTag

that identifies the react Tag of the view.

eventType

that identifies Android eventType. see sendAccessibilityEvent