MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _getSwipeArgs

Function _getSwipeArgs

packages/core/ui/gestures/index.android.ts:416–426  ·  view source on GitHub ↗
(direction: SwipeDirection, view: View, initialEvent: android.view.MotionEvent, currentEvent: android.view.MotionEvent)

Source from the content-addressed store, hash-verified

414}
415
416function _getSwipeArgs(direction: SwipeDirection, view: View, initialEvent: android.view.MotionEvent, currentEvent: android.view.MotionEvent): SwipeGestureEventData {
417 return <SwipeGestureEventData>{
418 type: GestureTypes.swipe,
419 view: view,
420 android: { initial: initialEvent, current: currentEvent },
421 direction: direction,
422 ios: undefined,
423 object: view,
424 eventName: toString(GestureTypes.swipe),
425 };
426}
427
428function _getPanArgs(deltaX: number, deltaY: number, view: View, state: GestureStateTypes, initialEvent: android.view.MotionEvent, currentEvent: android.view.MotionEvent): PanGestureEventData {
429 return <PanGestureEventData>{

Callers 1

onFlingMethod · 0.85

Calls 1

toStringFunction · 0.90

Tested by

no test coverage detected