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

Method docChanges

packages/firebase-firestore/index.ios.ts:663–677  ·  view source on GitHub ↗
(options?: SnapshotListenOptions)

Source from the content-addressed store, hash-verified

661 }
662
663 docChanges(options?: SnapshotListenOptions): DocumentChange[] {
664 let changes: NSArray<FIRDocumentChange>;
665 if (typeof options?.includeMetadataChanges === 'boolean') {
666 changes = this.native.documentChangesWithIncludeMetadataChanges(options.includeMetadataChanges);
667 } else {
668 changes = this.native.documentChanges;
669 }
670
671 const count = changes.count;
672 const docChanges = [];
673 for (let i = 0; i < count; i++) {
674 docChanges.push(DocumentChange.fromNative(changes.objectAtIndex(i)));
675 }
676 return docChanges;
677 }
678
679 forEach(callback: (result: QueryDocumentSnapshot, index: number) => void, thisArg?: any): void {
680 if (typeof callback === 'function') {

Callers

nothing calls this directly

Calls 2

pushMethod · 0.65
fromNativeMethod · 0.45

Tested by

no test coverage detected