Classes
The following classes are available globally.
-
Custom date formatter corresponds with the Dropmark API formatted date strings
See moreDeclaration
Swift
public class DKDateFormatter : DateFormatter
-
Provides encryption, decryption, and removal of an authenticated user object in the device keychain.
See moreDeclaration
Swift
@objc public class DKKeychain : NSObject
-
Memory-based storage for credentials within the current app session. Must be reconfigured every time the app leaves memory.
See moreDeclaration
Swift
@objc public class DKSession : NSObject
-
Collections are the main way things are organized in Dropmark. A collection has one owner, but has many items and users (AKA collaborators).
See moreDeclaration
Swift
@objc(DKCollection) public final class DKCollection : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
-
Comments can be added to individual items.
See moreDeclaration
Swift
@objc(DKComment) public final class DKComment : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
-
Undocumented
See moreDeclaration
Swift
public final class DKInvite : NSObject, DKResponseObjectSerializable, DKResponseListSerializable
-
Items belong to a collection, can optionally belong to another item (a stack), and have many comments and reactions.
See moreDeclaration
Swift
@objc(DKItem) public final class DKItem : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
-
In a collection, the permissions represent what actions the current user can and cannot perform.
See moreDeclaration
Swift
@objc(DKPermissions) public class DKPermissions : NSObject, NSCoding
-
Reactions are essentially a way for a user to “Like” an item.
See moreDeclaration
Swift
@objc(DKReaction) public final class DKReaction : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
-
Tags are added to items and are a great way to organize items across many collections.
See moreDeclaration
Swift
@objc(DKTag) public final class DKTag : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
-
Teams are similar to a user account – they have their own username, dashboard and subscription, but a team can be managed by multiple users.
A user associated with a team can be a manager or a user. Managers have more privledges than a normal user and some API endpoints are limited to managers only.
Teams can be added to a collection as a collaborator by
See moreusername
oruser_id
(use the teamid
for this).Declaration
Swift
@objc(DKTeam) public final class DKTeam : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable, DKAccount
-
Represents the available thumbnails for a collection or item.
See moreDeclaration
Swift
@objc(DKThumbnails) public class DKThumbnails : NSObject, NSCoding
-
Represents a user on Dropmark. Can be the current user, collaborators, or users external to your team.
Note
Only when a user is retrieved from the/auth
API endpoint will atoken
be returnedDeclaration
Swift
@objc(DKUser) public final class DKUser : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable, DKAccount
-
Use this class to load consecutive “pages” of content from a listable API endpoint. Includes utilities to check for new content while scrolling in a UICollectionView, UITableView, NSCollectionView, or NSTableView.
See moreDeclaration
Swift
public class DKPagingGenerator<T>