TouchTargetHelper

Class responsible for identifying which react view should handle a given MotionEvent. It uses the event coordinates to traverse the view hierarchy and return a suitable view.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class ViewTarget

Functions

Link copied to clipboard
Find touch event target view within the provided container given the coordinates provided via MotionEvent.
Link copied to clipboard
open fun findTargetTagAndCoordinatesForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup, viewCoords: Array<Float>, @Nullable nativeViewTag: Array<Int>): Int
Find touch event target view within the provided container given the coordinates provided via MotionEvent.
Link copied to clipboard
open fun findTargetTagForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup): Int
open fun findTargetTagForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup, @Nullable nativeViewId: Array<Int>): Int
Find touch event target view within the provided container given the coordinates provided via MotionEvent.