Package | com.distriqt.extension.firebase.database |
Class | public class DataSnapshot |
Inheritance | DataSnapshot ![]() |
A DataSnapshot instance contains data from a Firebase Database location. Any time you read Database data, you receive the data as a DataSnapshot.
They are efficiently-generated immutable copies of the data at a Firebase
Database location. They can't be modified and will never change. To modify
data at a location, use a DatabaseReference
reference
(e.g. with setValue()
).
Property | Defined By | ||
---|---|---|---|
children : Array
Gives access to all of the immediate children of this snapshot
Will be an Array of DataSnapshot objects. | DataSnapshot | ||
exists : Boolean = true
true if the snapshot contains a non-null value
| DataSnapshot | ||
key : String
The key name for the source location of this snapshot
| DataSnapshot | ||
priority : String = null
The priority of the data contained in this snapshot as a native type. | DataSnapshot | ||
reference : DatabaseReference
A DatabaseReference corresponding to the location that this snapshot came from
| DataSnapshot | ||
value : * = null
The data contained in this snapshot as native types
| DataSnapshot |
Method | Defined By | ||
---|---|---|---|
Constructor
| DataSnapshot | ||
[static] | DataSnapshot | ||
toString():String | DataSnapshot |
children | property |
public var children:Array
Gives access to all of the immediate children of this snapshot
Will be an Array of DataSnapshot
objects.
exists | property |
public var exists:Boolean = true
true
if the snapshot contains a non-null value
key | property |
public var key:String
The key name for the source location of this snapshot
priority | property |
public var priority:String = null
The priority of the data contained in this snapshot as a native type.
reference | property |
public var reference:DatabaseReference
A DatabaseReference
corresponding to the location that this snapshot came from
value | property |
public var value:* = null
The data contained in this snapshot as native types
DataSnapshot | () | Constructor |
public function DataSnapshot()
Constructor
fromObject | () | method |
public static function fromObject(data:Object, query:Query = null):DataSnapshot
Parameters
data:Object | |
query:Query (default = null )
|
DataSnapshot |
toString | () | method |
public function toString():String
ReturnsString |