Other Enumerations
The following enumerations are available globally.
-
Enum for the type of file represented by a
See moreDiskUsageItem.Declaration
Swift
public enum DittoFileSystemTypeextension DittoFileSystemType: CustomStringConvertible -
Indicates whether a connection request should be authorized.
See moreDeclaration
Swift
public enum DittoConnectionRequestAuthorizationextension DittoConnectionRequestAuthorization: Equatable -
Provides access to helpers for interoperability with objects from the DittoObjC SDK (which the Swift SDK is based on).
See moreDeclaration
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
reasonvalue. If you want a human-readable version of the error then calllocalizedDescriptionon the error’s reason.- activationError: An error occurred relating to activating the Ditto instance.
- authenticationError: An error occurred relating to authenticating the Ditto instance.
- encryptionError: An error occurred relating to encryption.
- migrationError: An error occurred relating to migrations.
- storeError: An error occurred relating to the store.
- transportError: An error occurred relating to the network transports.
- validationError: An error occurred relating to input validation.
- ioError: An error occurred relating to I/O.
- unsupportedError: Operation is not supported.
Declaration
Swift
public enum DittoSwiftError : Errorextension DittoSwiftError: LocalizedError -
Specifies which peers to replicate the small peer info to.
By default, the small peer info does not leave the current peer. This behavior can be customized to better match a specific application.
See moreDeclaration
Swift
public enum DittoSmallPeerInfoSyncScope : UInt, CaseIterableextension DittoSmallPeerInfoSyncScope: CustomStringConvertible -
Undocumented
See moreDeclaration
Swift
public enum LMDBError : Equatable -
Undocumented
See moreDeclaration
Swift
public indirect enum CBOR : Equatable, Hashable, ExpressibleByNilLiteral, ExpressibleByIntegerLiteral, ExpressibleByStringLiteral, ExpressibleByArrayLiteral, ExpressibleByDictionaryLiteral, ExpressibleByBooleanLiteral, ExpressibleByFloatLiteral -
The type of
See moreDittoConnectionbetween twoDittoPeers signaling what transport is being used for it.Declaration
Swift
public enum DittoConnectionType : Stringextension DittoConnectionType: CaseIterableextension DittoConnectionType: Codable
Other Enumerations Reference