devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

FIRDocumentChange


@interface FIRDocumentChange : NSObject

A DocumentChange represents a change to the documents matching a query. It contains the document affected and the type of change that occurred (added, modified, or removed).

  • The type of change that occurred (added, modified, or removed).

    Declaration

    Objective-C

    @property (nonatomic, readonly) FIRDocumentChangeType type;
  • The document affected by this change.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) FIRQueryDocumentSnapshot *_Nonnull document;
  • The index of the changed document in the result set immediately prior to this DocumentChange (i.e. supposing that all prior DocumentChange objects have been applied). NSNotFound for DocumentChangeTypeAdded events.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger oldIndex;
  • The index of the changed document in the result set immediately after this DocumentChange (i.e. supposing that all prior DocumentChange objects and the current DocumentChange object have been applied). NSNotFound for DocumentChangeTypeRemoved events.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger newIndex;

Get help quickly with Firebase support. Read our FAQs, Release notes, and guides, ask the community, then get direct support from the Firebase team.

Updated Oct 3, 2024

The Firebase JavaScript SDK implements the client-side libraries for applications using Firebase services.

Updated Jul 22, 2022

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 21, 2025