FirebaseDatabase Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FIRTransactionResult
@interface FIRTransactionResult : NSObject
Used for runTransactionBlock(_:)
. A TransactionResult
instance is a
container for the results of the transaction.
-
Used for runTransactionBlock(_:)
. Indicates that the new value should be
saved at this location.
Declaration
Objective-C
+ (nonnull FIRTransactionResult *)successWithValue:
(nonnull FIRMutableData *)value;
Parameters
value
|
A MutableData instance containing the new value to be set
|
Return Value
A TransactionResult
instance that can be used as a return value
from the block given to runTransactionBlock(_:)
.
-
Used for runTransactionBlock(_:)
. Indicates that the current transaction
should no longer proceed.
Declaration
Objective-C
+ (nonnull FIRTransactionResult *)abort;
Return Value
A TransactionResult
instance that can be used as a return value
from the block given to runTransactionBlock(_:)
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 2025-03-11 UTC.
[null,null,["Last updated 2025-03-11 UTC."],[],[],null,["FIRTransactionResult \n\n\n @interface FIRTransactionResult : NSObject\n\nUsed for `runTransactionBlock(_:)`. A `TransactionResult` instance is a\ncontainer for the results of the transaction.\n- `\n ``\n ``\n `\n\n [+successWithValue:](#/c:objc(cs)FIRTransactionResult(cm)successWithValue:)`\n ` \n Used for `runTransactionBlock(_:)`. Indicates that the new value should be\n saved at this location. \n\n Declaration \n Objective-C \n\n + (nonnull FIRTransactionResult *)successWithValue:\n (nonnull ../Classes/FIRMutableData.html *)value;\n\n Parameters\n\n Return Value\n\n A `TransactionResult` instance that can be used as a return value\n from the block given to `runTransactionBlock(_:)`.\n- `\n ``\n ``\n `\n\n [+abort](#/c:objc(cs)FIRTransactionResult(cm)abort)`\n ` \n Used for `runTransactionBlock(_:)`. Indicates that the current transaction\n should no longer proceed. \n\n Declaration \n Objective-C \n\n + (nonnull FIRTransactionResult *)abort;\n\n Return Value\n\n A `TransactionResult` instance that can be used as a return value\n from the block given to `runTransactionBlock(_:)`"]]