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

Method _observe

packages/core/ui/core/view/index.android.ts:609–614  ·  view source on GitHub ↗
(type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any)

Source from the content-addressed store, hash-verified

607
608 // TODO: Implement unobserve that detach the touchListener.
609 _observe(type: GestureTypes, callback: (args: GestureEventData) => void, thisArg?: any): void {
610 super._observe(type, callback, thisArg);
611 if (this.isLoaded && !this.touchListenerIsSet) {
612 this.setOnTouchListener();
613 }
614 }
615
616 addEventListener(eventNames: string, callback: (data: EventData) => void, thisArg?: any, once?: boolean) {
617 super.addEventListener(eventNames, callback, thisArg, once);

Callers 1

addEventListenerFunction · 0.80

Calls 1

setOnTouchListenerMethod · 0.95

Tested by

no test coverage detected