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 if passphrase is given. Otherwise data will be written to disk unencrypted, just as with regular Ditto 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
  • bus

    Undocumented

    Declaration

    Swift

    public let bus: DittoBus

Deprecated

  • Replaced by bus, please use that instead.

    Declaration

    Swift

    @available(*, deprecated, message: "Please use `ditto.experimental.bus` instead.")
    public class func busFor(ditto: Ditto) -> DittoBus