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

Function observe

packages/core/ui/gestures/index.ios.ts:10–15  ·  view source on GitHub ↗
(target: View, type: GestureTypes, callback: (args: GestureEventData) => void, context?: any)

Source from the content-addressed store, hash-verified

8export * from './touch-manager';
9
10export function observe(target: View, type: GestureTypes, callback: (args: GestureEventData) => void, context?: any): GesturesObserver {
11 const observer = new GesturesObserver(target, callback, context);
12 observer.observe(type);
13
14 return observer;
15}
16
17@NativeClass
18class UIGestureRecognizerDelegateImpl extends NSObject implements UIGestureRecognizerDelegate {

Callers

nothing calls this directly

Calls 1

observeMethod · 0.95

Tested by

no test coverage detected