devsite/tools/jazzy/templates

FirebaseFirestore Framework Reference

TransactionOptions

class TransactionOptions : NSObject, NSCopying

Options to customize the behavior of Firestore.runTransactionWithOptions().

  • Creates and returns a new TransactionOptions object with all properties initialized to their default values.

    Declaration

    Swift

    init()

    Return Value

    The created TransactionOptions object.

  • The maximum number of attempts to commit, after which transaction fails. Default is 5.

    Declaration

    Swift

    var maxAttempts: Int { get set }