Other Enumerations

The following enumerations are available globally.

  • 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.
    • 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
  • 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