ValueEventListener

Receives the data at a location and its changes; see Query.addValueEventListener.

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 onDataChange(snapshot: DataSnapshot)

Called with the data at the location, and again after every change.