DKDirectory

public struct DKDirectory

Encaspulates (and validates) a directory destination

  • The unique identifier of the destination collection

    Declaration

    Swift

    public var collectionID: NSNumber
  • The unique identifier of the destination stack, if available

    Declaration

    Swift

    public var stackID: NSNumber?
  • Create a destination aimed at a specific collection and stack

    Throws

    Returns an error if the provided stack item is not a DKItemType.stack

    Declaration

    Swift

    public init(collection: DKCollection, stack: DKItem? = nil) throws
  • Create a destination aimed at a specific collection and stack

    Declaration

    Swift

    public init(collectionID: NSNumber, stackID: NSNumber? = nil)

    Parameters

    collectionID

    The unique identifier of the destination collection

    stackID

    The unique identifier of the destination stack