Touch Target Helper
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.
Functions
Link copied to clipboard
open fun findTargetPathAndCoordinatesForTouch(eventX: Float, eventY: Float, viewGroup: ViewGroup, viewCoords: Array<Float>): List<TouchTargetHelper.ViewTarget>
Find touch event target view within the provided container given the coordinates provided via MotionEvent.
Link copied to clipboard
Link copied to clipboard
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.