JSTouchDispatcher

JSTouchDispatcher handles dispatching touches to JS from RootViews. If you implement RootView you need to call handleTouchEvent from onTouchEvent and onInterceptTouchEvent. It will correctly find the right view to handle the touch and also dispatch the appropriate event to JS

Constructors

Link copied to clipboard
constructor(viewGroup: ViewGroup)

Functions

Link copied to clipboard
open fun handleTouchEvent(ev: MotionEvent, eventDispatcher: EventDispatcher)

open fun handleTouchEvent(ev: MotionEvent, eventDispatcher: EventDispatcher, @Nullable reactContext: ReactContext)
Main catalyst view is responsible for collecting and sending touch events to JS.
Link copied to clipboard
open fun onChildEndedNativeGesture(androidEvent: MotionEvent, eventDispatcher: EventDispatcher)
Link copied to clipboard
open fun onChildStartedNativeGesture(androidEvent: MotionEvent, eventDispatcher: EventDispatcher)