Package | com.distriqt.extension.firebase.database.events |
Class | public class DatabaseReferenceChildEvent |
Inheritance | DatabaseReferenceChildEvent ![]() |
Property | Defined 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 |
Method | Defined 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 |
Constant | Defined 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 |
errorCode | property |
public var errorCode:int = -1
For error events this will contain the code of the error that occurred
errorDescription | property |
public var errorDescription:String
For error events this will contain a description of the error that occurred
previousChildName | property |
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.
snapshot | property |
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.
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
Parameterstype:String | |
snapshot:DataSnapshot (default = null )
| |
previousChildName:String (default = null )
| |
errorCode:int (default = -1 )
| |
errorDescription:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
CHILD_ADDED | Constant |
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_CHANGED | Constant |
public static const CHILD_CHANGED:String = dbref:child:changed
This method is triggered when the data at a child location has changed
CHILD_MOVED | Constant |
public static const CHILD_MOVED:String = dbref:child:moved
This method is triggered when a child location's priority changes
CHILD_REMOVED | Constant |
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.
ERROR | Constant |
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.