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

Function _getLongPressArgs

packages/core/ui/gestures/index.android.ts:404–414  ·  view source on GitHub ↗
(type: GestureTypes, view: View, state: GestureStateTypes, e: android.view.MotionEvent)

Source from the content-addressed store, hash-verified

402}
403
404function _getLongPressArgs(type: GestureTypes, view: View, state: GestureStateTypes, e: android.view.MotionEvent): GestureEventDataWithState {
405 return <GestureEventDataWithState>{
406 type: type,
407 view: view,
408 android: e,
409 ios: undefined,
410 object: view,
411 eventName: toString(type),
412 state: state,
413 };
414}
415
416function _getSwipeArgs(direction: SwipeDirection, view: View, initialEvent: android.view.MotionEvent, currentEvent: android.view.MotionEvent): SwipeGestureEventData {
417 return <SwipeGestureEventData>{

Callers 1

onLongPressMethod · 0.85

Calls 1

toStringFunction · 0.90

Tested by

no test coverage detected