Other Enumerations

The following enumerations are available globally.

  • Enum for the type of file represented by a DiskUsageItem.

    See more

    Declaration

    Swift

    public enum DittoFileSystemType
    extension DittoFileSystemType: CustomStringConvertible
  • Provides access to helpers for interoperability with objects from the DittoObjC SDK (which the Swift SDK is based on).

    See more

    Declaration

    Swift

    public enum DittoObjCInterop
  • All errors that are thrown by the Ditto SDK are wrapped as a DittoSwiftError. It wraps multiple different types of error that each have an associated reason.

    You can access more specific information about an error by switching over the error’s reason value. If you want a human-readable version of the error then call localizedDescription on the error’s reason.

    • activationError: An error occurred relating to activating the Ditto instance.
    • authenticationError: An error occurred relating to authenticating the Ditto instance.
    • migrationError: An error occurred relating to migrations.
    • storeError: An error occurred relating to the store.
    • transportError: An error occurred relating to the network transports.
    See more

    Declaration

    Swift

    public enum DittoSwiftError : Error
    extension DittoSwiftError: LocalizedError
  • Describes the different types of event that you can receive when dealing with live queries.

    • initial: The first event that will be delivered and it will only be delivered once.
    • update: This event will be delivered each time the results of the provided query change. It contains information about the set of documents that previously matched the query before the update, along with information about what documents have been inserted, deleted, updated, or moved, as part of the set of matching documents.
    See more

    Declaration

    Swift

    public enum DittoExperimentalChangeListenerEvent
    extension DittoExperimentalChangeListenerEvent: CustomStringConvertible, CustomDebugStringConvertible
  • Specifies which peers to replicate the small peer info to.

    By default, the small peer info is replicated only to the big peer. This behavior can be customized to better match a specific application.

    See more

    Declaration

    Swift

    public enum DittoSmallPeerInfoSyncScope : UInt, CaseIterable
    extension DittoSmallPeerInfoSyncScope: CustomStringConvertible
  • Undocumented

    See more

    Declaration

    Swift

    public enum LMDBError : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public indirect enum CBOR : Equatable, Hashable,
            ExpressibleByNilLiteral, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral,
            ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral, ExpressibleByBooleanLiteral,
            ExpressibleByFloatLiteral
  • The type of DittoConnection between two DittoPeers signaling what transport is being used for it.

    See more

    Declaration

    Swift

    public enum DittoConnectionType : String
    extension DittoConnectionType: CaseIterable
    extension DittoConnectionType: Codable