(options?: SnapshotListenOptions)
| 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') { |
nothing calls this directly
no test coverage detected