Packagecom.myflashlab.air.extensions.firebase.firestore
Classpublic class DocumentChange
InheritanceDocumentChange Inheritance Object

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



Public Properties
 PropertyDefined By
  changeType : int
[read-only]
DocumentChange
  document : DocumentSnapshot
[read-only]
DocumentChange
  newIndex : int
[read-only] The index of the changed document in the result set immediately after this DocumentChange (i.e.
DocumentChange
  oldIndex : int
[read-only] The index of the changed document in the result set immediately prior to this DocumentChange (i.e.
DocumentChange
Public Constants
 ConstantDefined By
  ADDED : int = 0
[static]
DocumentChange
  MODIFIED : int = 1
[static]
DocumentChange
  REMOVED : int = 2
[static]
DocumentChange
Property Detail
changeTypeproperty
changeType:int  [read-only]


Implementation
    public function get changeType():int
documentproperty 
document:DocumentSnapshot  [read-only]


Implementation
    public function get document():DocumentSnapshot
newIndexproperty 
newIndex:int  [read-only]

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). Returns -1 for 'removed' events.


Implementation
    public function get newIndex():int
oldIndexproperty 
oldIndex:int  [read-only]

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). Returns -1 for 'added' events.


Implementation
    public function get oldIndex():int
Constant Detail
ADDEDConstant
public static const ADDED:int = 0

MODIFIEDConstant 
public static const MODIFIED:int = 1

REMOVEDConstant 
public static const REMOVED:int = 2