MCPcopy Index your code
hub / github.com/NativeScript/firebase / off

Method off

packages/firebase-database/index.android.ts:191–203  ·  view source on GitHub ↗
(eventType?: EventType, callback?: (a: DataSnapshot, b: string) => void, context?: Record<string, any>)

Source from the content-addressed store, hash-verified

189 return Query.fromNative(this.native.limitToLast(limit));
190 }
191 off(eventType?: EventType, callback?: (a: DataSnapshot, b: string) => void, context?: Record<string, any>): void {
192 const handle = callback?.['__fbHandle'];
193 const event = callback?.['__fbEventType'];
194 if (handle && event === eventType) {
195 if (this._handles.has(callback)) {
196 this.native.removeEventListener(handle as any);
197 callback['__fbHandle'] = undefined;
198 callback['__fbEventType'] = undefined;
199 callback['__fbContext'] = undefined;
200 this._handles.delete(callback);
201 }
202 }
203 }
204
205 _handles: Map<(a: DataSnapshot, b: string) => void, com.google.firebase.database.ValueEventListener | com.google.firebase.database.ChildEventListener> = new Map();
206

Callers

nothing calls this directly

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected