Packagecom.distriqt.extension.firebase.database
Classpublic class DataSnapshot
InheritanceDataSnapshot Inheritance Object

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()).



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Constructor
DataSnapshot
  
fromObject(data:Object, query:Query = null):DataSnapshot
[static]
DataSnapshot
  
toString():String
DataSnapshot
Property Detail
childrenproperty
public var children:Array

Gives access to all of the immediate children of this snapshot

Will be an Array of DataSnapshot objects.

existsproperty 
public var exists:Boolean = true

true if the snapshot contains a non-null value

keyproperty 
public var key:String

The key name for the source location of this snapshot

priorityproperty 
public var priority:String = null

The priority of the data contained in this snapshot as a native type.

referenceproperty 
public var reference:DatabaseReference

A DatabaseReference corresponding to the location that this snapshot came from

valueproperty 
public var value:* = null

The data contained in this snapshot as native types

Constructor Detail
DataSnapshot()Constructor
public function DataSnapshot()

Constructor

Method Detail
fromObject()method
public static function fromObject(data:Object, query:Query = null):DataSnapshot

Parameters

data:Object
 
query:Query (default = null)

Returns
DataSnapshot
toString()method 
public function toString():String

Returns
String