DKItem
@objc(DKItem)
public final class DKItem : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializableItems belong to a collection, can optionally belong to another item (a stack), and have many comments and reactions.
- 
                  
                  The unique identifier of the item DeclarationSwift public var id: NSNumber
- 
                  
                  The unique identifier of the parent collection DeclarationSwift public var collectionID: NSNumber
- 
                  
                  The name of the parent collection DeclarationSwift public var collectionName: String?
- 
                  
                  The unique identifier of the parent stack DeclarationSwift public var parentID: NSNumber?
- 
                  
                  The name of the parent stack DeclarationSwift public var parentName: String?
- 
                  
                  The name of the item DeclarationSwift public var name: String?
- 
                  
                  Not to be confused with the NSObjectdescription, this is the Dropmark-defined description of an itemDeclarationSwift public var descriptionText: String?
- 
                  
                  Content may contain a multitude of types. Usually the content takes the form of a string, which may in turn represent a URL DeclarationSwift public var content: Any?
- 
                  
                  A link to the content, external to Dropmark DeclarationSwift public var link: URL?
- 
                  
                  Undocumented DeclarationSwift public var preview: String?
- 
                  
                  User-defined thumbnail image URL, if available DeclarationSwift public var thumbnail: URL?
- 
                  
                  trueif the item is available to share via a linkDeclarationSwift public var shareable: Bool?
- 
                  
                  The size in bytes, if applicable, of the content DeclarationSwift public var size: NSNumber?
- 
                  
                  Undocumented DeclarationSwift public var sort: NSNumber?
- 
                  
                  The high level representation of the content. See the documentation of DKItemTypefor a richer understanding of when to reference an item’s typeDeclarationSwift public var type: DKItemType
- 
                  
                  The MIME type as derived by Dropmark DeclarationSwift public var mime: String?
- 
                  
                  If available, the location the item’s content was created DeclarationSwift public var location: CLLocation?
- 
                  
                  The date the item was created DeclarationSwift public var createdAt: Date
- 
                  
                  The date the last time the item was updated DeclarationSwift public var updatedAt: Date?
- 
                  
                  The date the item was marked for deletion DeclarationSwift public var deletedAt: Date?
- 
                  
                  The total number of reactions (or “likes”) recieved by the item DeclarationSwift public var reactionsTotalCount: NSNumber
- 
                  
                  A link to the item on Dropmark. Note: The item must be shareableto view this link.DeclarationSwift public var url: URL
- 
                  
                  A shortened link to the item on Dropmark. Note: The item must be shareableto view this link.DeclarationSwift public var shortURL: URL
- 
                  
                  A suite of thumbnails generated by Dropmark DeclarationSwift public var thumbnails: DKThumbnails?
- 
                  
                  trueif the content contains a URL. Note: Always test the content yourself, use this only for preview/UI renderingDeclarationSwift public var isURL: Bool?
- 
                  
                  A list of tags applied to this item DeclarationSwift public var tags: [DKTag]
- 
                  
                  Contains a range of other data associated with the item’s content. For example, an image item may contain the image’s EXIF data as a key-value set DeclarationSwift public var metadata: [String : AnyObject]?
- 
                  
                  If the item is a stack, this contains a list of child items. Usually this is used to temporarily store up to 4 child items for a quadrant thumbnail, not as a store of all children items. DeclarationSwift public var items: [DKItem]?
- 
                  
                  If the item is a stack, this is the total number of child items DeclarationSwift public var itemsTotalCount: NSNumber?
- 
                  
                  The creator of the item DeclarationSwift public var user: DKUser
- 
                  
                  The reactions (or “likes”) the item recieved DeclarationSwift public var reactions: [DKReaction]
- 
                  
                  The comments the item recieved DeclarationSwift public var comments: [DKComment]
- 
                  
                  The effective file path for an item on Dropmark’s servers DeclarationSwift public var directory: DKDirectory { get }
- 
                  
                  Serializes a new instance from the provided network response and key-value representation. The representation is validated for the required parameters, then fills in optional parameters as necessary. DeclarationSwift public init?(response: HTTPURLResponse, representation: Any)ParametersresponseA network response assocated with serialization representationA key-value object representing parameters and child objects. 
- 
                  
                  Returns an object initialized from data in a given unarchiver. - Discussion: You typically return - selffrom- init(coder:). If you have an advanced need that requires substituting a different object after decoding, you can do so in- awakeAfter(using:).
 DeclarationSwift public required init?(coder aDecoder: NSCoder)ParameterscoderAn unarchiver object. Return Valueself, initialized using the data incoder.
- 
                  
                  Encodes the receiver using a given archiver. DeclarationSwift public func encode(with aCoder: NSCoder)ParametersencoderAn archiver object. 
 View on GitHub
View on GitHub Install in Dash
Install in Dash DKItem Class Reference
        DKItem Class Reference