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
Ditto
object with on-disk encryption enabled ifpassphrase
is given. Otherwise data will be written to disk unencrypted, just as with regularDitto
initializers.Declaration
Swift
public class func open( identity: DittoIdentity = .offlinePlayground(), historyTrackingEnabled: Bool = false, persistenceDirectory: URL? = nil, passphrase: String? = nil ) throws -> Ditto
Parameters
identity
Provide the identity of the entity that is interacting with Ditto.
historyTrackingEnabled
Whether or not you want history tracking enabled.
persistenceDirectory
The directory that will be used to persist Ditto data.
passphrase
If given, the data will be encrypted on disk with the passphrase.
-
Undocumented
Declaration
Swift
public class func jsonByTranscoding(cbor: Data) throws -> Data
-
Undocumented
Declaration
Swift
public let bus: DittoBus