DatabaseReference.CompletionListener

public 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 methods

abstract void

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

Public methods

onComplete

abstract void onComplete(@Nullable DatabaseError error, @NonNull DatabaseReference ref)

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
@Nullable DatabaseError error

A description of any errors that occurred or null on success

@NonNull DatabaseReference ref

A reference to the specified Firebase Database location