[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/unity/class/firebase/database/transaction-result [Back]  [Original]

Firebase.Database.TransactionResult Class Reference Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

Firebase.Database.TransactionResult

Instances of this class represent the desired outcome of a single Run of a transaction.

Summary

Pass a handler to DatabaseReference.RunTransaction, and in your handler, you can either:

Properties

IsSuccess
bool
Whether or not this result is a success.

Public static functions

Abort()
Aborts the transaction run with DatabaseReference.RunTransaction and returns an aborted TransactionResult which can be returned from RunTransaction.
Success(MutableData resultData)
Builds a successful result to be returned from the handler passed to DatabaseReference.RunTransaction.

Properties

IsSuccess

bool IsSuccess

Whether or not this result is a success.

Public static functions

Abort

TransactionResult Abort()

Aborts the transaction run with DatabaseReference.RunTransaction and returns an aborted TransactionResult which can be returned from RunTransaction.

Success

TransactionResult Success(
  MutableData resultData
)

Builds a successful result to be returned from the handler passed to DatabaseReference.RunTransaction.

Details
Parameters
resultData
The desired data to be stored at the location.
Returns
A TransactionResult indicating the new data to be stored at the location.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2021-06-17 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-06-17 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page