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

Function _getLongPressData

packages/core/ui/gestures/index.ios.ts:480–492  ·  view source on GitHub ↗
(args: GestureEventData)

Source from the content-addressed store, hash-verified

478}
479
480function _getLongPressData(args: GestureEventData): GestureEventDataWithState {
481 const recognizer = <UILongPressGestureRecognizer>args.ios;
482
483 return <GestureEventDataWithState>{
484 type: args.type,
485 view: args.view,
486 ios: args.ios,
487 android: undefined,
488 object: args.view,
489 eventName: toString(args.type),
490 state: getState(recognizer),
491 };
492}
493
494@NativeClass
495class TouchGestureRecognizer extends UIGestureRecognizer {

Callers 1

_attachMethod · 0.85

Calls 2

toStringFunction · 0.90
getStateFunction · 0.85

Tested by

no test coverage detected