IMPORTANT: In July 2025, we stopped releasing new versions of KTX modules, and we removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the previously released KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.
[[["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 2025-07-21 UTC."],[],[],null,["# Transaction.Result\n==================\n\n\n```\nclass Transaction.Result\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInstances of this class represent the desired outcome of a single run of a [Handler](/docs/reference/kotlin/com/google/firebase/database/Transaction.Handler)'s doTransaction method. The options are:\n\n- Set the data to the new value (success)\n- abort the transaction\n\nInstances are created using [success](/docs/reference/kotlin/com/google/firebase/database/Transaction#success(com.google.firebase.database.MutableData)) or [abort](/docs/reference/kotlin/com/google/firebase/database/Transaction#abort()).\n\nSummary\n-------\n\n| ### Public functions |\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isSuccess](/docs/reference/kotlin/com/google/firebase/database/Transaction.Result#isSuccess())`()` |\n\nPublic functions\n----------------\n\n### isSuccess\n\n```\nfun isSuccess(): Boolean\n``` \n\n| Returns |\n|------------------------------------------------------------------------------------|-----------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | Whether or not this result is a success |"]]