DocumentChange
class DocumentChange : NSObject, @unchecked Sendable
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
Swift
var type: DocumentChangeType { get }
-
The document affected by this change.
Declaration
Swift
var document: FIRQueryDocumentSnapshot { get }
-
The index of the changed document in the result set immediately prior to this
DocumentChange
(i.e. supposing that all priorDocumentChange
objects have been applied).NSNotFound
forDocumentChangeTypeAdded
events.Declaration
Swift
var oldIndex: UInt { get }
-
The index of the changed document in the result set immediately after this
DocumentChange
(i.e. supposing that all priorDocumentChange
objects and the currentDocumentChange
object have been applied).NSNotFound
forDocumentChangeTypeRemoved
events.Declaration
Swift
var newIndex: UInt { get }