ChildEventListener

Receives the changes to the children of a location; see Query.addChildEventListener.

Functions

Link copied to clipboard
abstract fun onCancelled(error: DatabaseError)

Called when the listener is cancelled, for example because the client lost read permission.

Link copied to clipboard
abstract fun onChildAdded(snapshot: DataSnapshot, previousChildName: String?)

Called for every existing child and then for each new one; previousChildName orders it after its sibling.

Link copied to clipboard
abstract fun onChildChanged(snapshot: DataSnapshot, previousChildName: String?)

Called when the data of a child changed.

Link copied to clipboard
abstract fun onChildMoved(snapshot: DataSnapshot, previousChildName: String?)

Called when a child changed position because its priority changed.

Link copied to clipboard
abstract fun onChildRemoved(snapshot: DataSnapshot)

Called when a child is removed.