DittoExperimental
public class DittoExperimental
Upcoming SDK features made available for prototyping.
Warning
Experimental functionality should not be used in production applications as it may be changed or removed at any time, and may not have the same security features.-
Experimental factory method creating a
Dittoobject with on-disk encryption enabled ifpassphraseis given. Otherwise data will be written to disk unencrypted, just as with regularDittoinitializers.Declaration
Swift
public class func open( identity: DittoIdentity = .offlinePlayground(), historyTrackingEnabled: Bool = false, persistenceDirectory: URL? = nil, passphrase: String? = nil ) throws -> DittoParameters
identityProvide the identity of the entity that is interacting with Ditto.
historyTrackingEnabledWhether or not you want history tracking enabled.
persistenceDirectoryThe directory that will be used to persist Ditto data.
passphraseIf given, the data will be encrypted on disk with the passphrase.
-
Undocumented
Declaration
Swift
public class func jsonByTranscoding(cbor: Data) throws -> Data