public static interface Transaction.Handler
|Modifier and Type||Method and Description|
This method will be called, possibly multiple times, with the current data at this location.
This method will be called once with the results of the transaction.
Transaction.Result doTransaction(MutableData currentData)
Transaction.Resultspecifying either the desired new data at the location or that the transaction should be aborted.
currentData- The current data at the location. Update this to the desired data at the location
void onComplete(FirebaseError error, boolean committed, DataSnapshot currentData)
error- null if no errors occurred, otherwise it contains a description of the error
committed- True if the transaction successfully completed, false if it was aborted or an error occurred
currentData- The current data at the location
Copyright © 2017 Firebase. All rights reserved.