DatabaseReference.CompletionListener

interface DatabaseReference.CompletionListener


This interface is used as a method of being notified when an operation has been acknowledged by the Database servers and can be considered complete

1.1

Summary

Public functions

Unit

This method will be triggered when the operation has either succeeded or failed.

Public functions

onComplete

fun onComplete(error: DatabaseError?, ref: DatabaseReference): Unit

This method will be triggered when the operation has either succeeded or failed. If it has failed, an error will be given. If it has succeeded, the error will be null

Parameters
error: DatabaseError?

A description of any errors that occurred or null on success

ref: DatabaseReference

A reference to the specified Firebase Database location