Handler

actual interface Handler(source)

Runs the transaction and receives its outcome.

expect interface Handler(source)

Runs the transaction and receives its outcome.

actual interface Handler(source)

Runs the transaction and receives its outcome.

Functions

Link copied to clipboard
actual abstract fun doTransaction(currentData: MutableData): Transaction.Result

Reads and updates currentData; returns success to commit the new data or abort to leave it unchanged.

expect abstract fun doTransaction(currentData: MutableData): Transaction.Result

Reads and updates currentData; returns success to commit the new data or abort to leave it unchanged.

actual abstract fun doTransaction(currentData: MutableData): Transaction.Result

Reads and updates currentData; returns success to commit the new data or abort to leave it unchanged.

Link copied to clipboard
actual abstract fun onComplete(error: DatabaseError?, committed: Boolean, currentData: DataSnapshot?)

Called once the transaction is committed (committed with the final currentData), aborted, or failed with error.

expect abstract fun onComplete(error: DatabaseError?, committed: Boolean, currentData: DataSnapshot?)

Called once the transaction is committed (committed with the final currentData), aborted, or failed with error.

actual abstract fun onComplete(error: DatabaseError?, committed: Boolean, currentData: DataSnapshot?)

Called once the transaction is committed (committed with the final currentData), aborted, or failed with error.