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

Method _detach

packages/core/ui/gestures/index.ios.ts:267–276  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 }
266
267 private _detach() {
268 for (const type in this._recognizers) {
269 const item = this._recognizers[type];
270 this.target?.nativeViewProtected?.removeGestureRecognizer(item.recognizer);
271
272 item.recognizer = null;
273 item.target = null;
274 delete this._recognizers[type];
275 }
276 }
277
278 public disconnect() {
279 this._detach();

Callers 3

observeMethod · 0.95
_attachMethod · 0.95
disconnectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected