SendStoreOptions

public struct SendStoreOptions

Options for the store snapshot sent to the server when conflict handling mode is .discardPendingTransactionsAfterUpload.

  • Maximum allowed length (in characters) for note.

    Declaration

    Swift

    public static let noteMaxLength: Int
  • Re-encrypts the store with this key before send the store to server. If nil, the store is sent as-is.

    Declaration

    Swift

    public var encryptionKey: String?
  • Send only the request queue database (true) or both entity store and request queue (false). Default is false.

    Declaration

    Swift

    public var sendRequestQueueOnly: Bool
  • Optional diagnostic note attached to the uploaded store (max SendStoreOptions.noteMaxLength characters; throws OfflineODataErrorCode.SEND_STORE_NOTE_TOO_LONG if longer).

    Declaration

    Swift

    public var note: String?
  • Undocumented

    Declaration

    Swift

    public init(encryptionKey: String? = nil, sendRequestQueueOnly: Bool = false, note: String? = nil)