Packagecom.distriqt.extension.firebase.database.events
Classpublic class DatabaseReferenceChildEvent
InheritanceDatabaseReferenceChildEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  errorCode : int = -1
For error events this will contain the code of the error that occurred
DatabaseReferenceChildEvent
  errorDescription : String
For error events this will contain a description of the error that occurred
DatabaseReferenceChildEvent
  previousChildName : String = null
The key name of sibling location ordered before the new child.
DatabaseReferenceChildEvent
  snapshot : DataSnapshot = null
For CHILD_ADDED/CHILD_CHANGED/CHILD_REMOVED/CHILD_MOVED events this will contain the static (immutable) snapshot at the child location.
DatabaseReferenceChildEvent
Public Methods
 MethodDefined By
  
DatabaseReferenceChildEvent(type:String, snapshot:DataSnapshot = null, previousChildName:String = null, errorCode:int = -1, errorDescription:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
DatabaseReferenceChildEvent
  
clone():Event
[override]
DatabaseReferenceChildEvent
Public Constants
 ConstantDefined By
  CHILD_ADDED : String = dbref:child:added
[static] This event is triggered when a new child is added to the location to which this listener was added.
DatabaseReferenceChildEvent
  CHILD_CHANGED : String = dbref:child:changed
[static] This method is triggered when the data at a child location has changed
DatabaseReferenceChildEvent
  CHILD_MOVED : String = dbref:child:moved
[static] This method is triggered when a child location's priority changes
DatabaseReferenceChildEvent
  CHILD_REMOVED : String = dbref:child:removed
[static] This method is triggered when a child is removed from the location to which this listener was added.
DatabaseReferenceChildEvent
  ERROR : String = dbref:child:error
[static] This event will be triggered in the event that this listener either failed at the server, or is removed as a result of the security and Firebase rules.
DatabaseReferenceChildEvent
Property Detail
errorCodeproperty
public var errorCode:int = -1

For error events this will contain the code of the error that occurred

errorDescriptionproperty 
public var errorDescription:String

For error events this will contain a description of the error that occurred

previousChildNameproperty 
public var previousChildName:String = null

The key name of sibling location ordered before the new child. This will be null for the first child node of a location and for the removed and error events.

snapshotproperty 
public var snapshot:DataSnapshot = null

For CHILD_ADDED/CHILD_CHANGED/CHILD_REMOVED/CHILD_MOVED events this will contain the static (immutable) snapshot at the child location.

Constructor Detail
DatabaseReferenceChildEvent()Constructor
public function DatabaseReferenceChildEvent(type:String, snapshot:DataSnapshot = null, previousChildName:String = null, errorCode:int = -1, errorDescription:String, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
snapshot:DataSnapshot (default = null)
 
previousChildName:String (default = null)
 
errorCode:int (default = -1)
 
errorDescription:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CHILD_ADDEDConstant
public static const CHILD_ADDED:String = dbref:child:added

This event is triggered when a new child is added to the location to which this listener was added.

CHILD_CHANGEDConstant 
public static const CHILD_CHANGED:String = dbref:child:changed

This method is triggered when the data at a child location has changed

CHILD_MOVEDConstant 
public static const CHILD_MOVED:String = dbref:child:moved

This method is triggered when a child location's priority changes

CHILD_REMOVEDConstant 
public static const CHILD_REMOVED:String = dbref:child:removed

This method is triggered when a child is removed from the location to which this listener was added.

ERRORConstant 
public static const ERROR:String = dbref:child:error

This event will be triggered in the event that this listener either failed at the server, or is removed as a result of the security and Firebase rules.