ZDCTreesystemTrunk

enum ZDCTreesystemTrunk {}

The treesystem has several different trunks, which represent root-level nodes. All of the nodes in your treesystem will be rooted in one of these trunks.

For more information about the ZeroDark.cloud treesystem, check out the docs:

  • The ‘Home’ trunk is where your app stores the majority of its data. If you don’t specify a trunk when creating a path, it will default to ‘Home’.

    Declaration

    Objective-C

    ZDCTreesystemTrunk_Home

    Swift

    case home = 0
  • The ‘Prefs’ trunk is designed for storing (synced) user preferences. Unlike the home trunk, it doesn’t allow nodes to be shared with other users.

    Declaration

    Objective-C

    ZDCTreesystemTrunk_Prefs

    Swift

    case prefs = 1
  • The ‘Inbox’ trunk is where you receive incoming messages from other users. See the docs for more information.

    Declaration

    Objective-C

    ZDCTreesystemTrunk_Inbox

    Swift

    case inbox = 2
  • The ‘Outbox’ trunk is for outgoing messages. Messages in your outbox get copied into other users’ ‘Inbox’, and all of your devices see the ougoing message via your ‘Outbox’.

    Declaration

    Objective-C

    ZDCTreesystemTrunk_Outbox

    Swift

    case outbox = 3
  • A special value used for nodes that aren’t attached to a local treesystem. Don’t use this value - it’s reserved for special nodes (e.g. signals)

    Declaration

    Objective-C

    ZDCTreesystemTrunk_Detached = NSIntegerMax

    Swift

    case detached = 9223372036854775807