public abstract class FirestoreCompletionHandler<Response>
extends java.lang.Object
Constructor and Description |
---|
FirestoreCompletionHandler()
Constructor for Firestore Completion handler with no watched operations.
|
FirestoreCompletionHandler(int toComplete)
Constructor for Firestore Completion handler with watched operations.
|
Modifier and Type | Method and Description |
---|---|
void |
completed(Response response)
Called when the Firestore operation has completed.
|
void |
failed(java.lang.Exception exception)
Called when the Firestore operation has failed.
|
boolean |
isCompleted() |
public FirestoreCompletionHandler(int toComplete)
toComplete
- The number of operators to complete.public FirestoreCompletionHandler()
public void completed(Response response)
response
- The response of the operation.public void failed(java.lang.Exception exception)
exception
- The throwable exception.public boolean isCompleted()