TransactionOptions
class TransactionOptions : NSObject, NSCopyingOptions to customize the behavior of Firestore.runTransactionWithOptions().
-
Creates and returns a new
TransactionOptionsobject with all properties initialized to their default values.Declaration
Swift
init()Return Value
The created
TransactionOptionsobject. -
The maximum number of attempts to commit, after which transaction fails. Default is 5.
Declaration
Swift
var maxAttempts: Int { get set }