Package | com.myflashlab.air.extensions.firebase.firestore |
Class | public class DocumentSnapshot |
Inheritance | DocumentSnapshot Object |
Property | Defined By | ||
---|---|---|---|
data : Object [read-only]
Returns the fields of the document as an Object which is Json validated. | DocumentSnapshot | ||
metadata : SnapshotMetadata [read-only]
The metadata for this document snapshot. | DocumentSnapshot | ||
reference : DocumentReference [read-only]
Gets the reference to the document. | DocumentSnapshot | ||
snapshotId : String [read-only]
The id of the document. | DocumentSnapshot |
Constant | Defined By | ||
---|---|---|---|
ServerTimestampBehavior_ESTIMATE : int = 1 [static]
Return local estimates for ServerTimestamps that have not yet been set to their final value. | DocumentSnapshot | ||
ServerTimestampBehavior_NONE : int = 0 [static]
Return 'null' for ServerTimestamps that have not yet been set to their final value. | DocumentSnapshot | ||
ServerTimestampBehavior_PREVIOUS : int = 2 [static]
Return the previous value for ServerTimestamps that have not yet been set to their final value. | DocumentSnapshot |
data | property |
data:Object
[read-only] Returns the fields of the document as an Object which is Json validated.
public function get data():Object
metadata | property |
metadata:SnapshotMetadata
[read-only] The metadata for this document snapshot.
public function get metadata():SnapshotMetadata
reference | property |
reference:DocumentReference
[read-only] Gets the reference to the document.
public function get reference():DocumentReference
snapshotId | property |
snapshotId:String
[read-only] The id of the document.
public function get snapshotId():String
ServerTimestampBehavior_ESTIMATE | Constant |
public static const ServerTimestampBehavior_ESTIMATE:int = 1
Return local estimates for ServerTimestamps that have not yet been set to their final value. This estimate will likely differ from the final value and may cause these pending values to change once the server result becomes available.
ServerTimestampBehavior_NONE | Constant |
public static const ServerTimestampBehavior_NONE:int = 0
Return 'null' for ServerTimestamps that have not yet been set to their final value.
ServerTimestampBehavior_PREVIOUS | Constant |
public static const ServerTimestampBehavior_PREVIOUS:int = 2
Return the previous value for ServerTimestamps that have not yet been set to their final value.