Core

  • This class is the primary interface for interacting with the ZeroDark.cloud framework.

    See more

    Declaration

    Objective-C

    @interface ZeroDarkCloud : NSObject

    Swift

    class ZeroDarkCloud : NSObject
  • The ZeroDarkCloudDelegate assists in push & pull operations, and facilitates communication about cloud changes.

    See more

    Declaration

    Objective-C

    @protocol ZeroDarkCloudDelegate

    Swift

    protocol ZeroDarkCloudDelegate
  • ZDData is used to upload data (of any size).

    It’s used by the ZeroDarkCloudDelegate protocol. Whenever the framework is ready to upload a node or message, it asks the delegate for the data. Since the framework supports everything from small objects to multi-gigabyte files, the ZDCData class is used to encapsulate the response.

    For small items, you can create a ZDCData container with the raw in-memory data. For example, if you’re uploading a serialized object, you can simply serialize the object, and then wrap the serialized bytes within a ZDCData container.

    For larger items, the data is typically stored in a file somwehere. In this case, you can create a ZDCData container that points to the file.

    Note

    For file uploads, the framework will automatically monitor the file during upload. If the file is modified, the framework will abort the upload & restart it. This ensures the file doesn’t get corrupted during upload. (Monitoring is done via ZDCDiskMonitor, and uses both hashing & filesystem notifications to detect changes.)
    See more

    Declaration

    Objective-C

    @interface ZDCData : NSObject

    Swift

    class ZDCData : NSObject