Classes

The following classes are available globally.

  • Custom date formatter corresponds with the Dropmark API formatted date strings

    See more

    Declaration

    Swift

    public class DKDateFormatter : DateFormatter
  • Provides encryption, decryption, and removal of an authenticated user object in the device keychain.

    See more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    @objc(DKCollection)
    public final class DKCollection : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
  • Comments can be added to individual items.

    See more

    Declaration

    Swift

    @objc(DKComment)
    public final class DKComment : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable
  • Undocumented

    See more

    Declaration

    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 more

    Declaration

    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 more

    Declaration

    Swift

    @objc(DKPermissions)
    public class DKPermissions : NSObject, NSCoding
  • Reactions are essentially a way for a user to “Like” an item.

    See more

    Declaration

    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 more

    Declaration

    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 username or user_id (use the team id for this).

    See more

    Declaration

    Swift

    @objc(DKTeam)
    public final class DKTeam : NSObject, NSCoding, DKResponseObjectSerializable, DKResponseListSerializable, DKAccount
  • Represents the available thumbnails for a collection or item.

    See more

    Declaration

    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 a token be returned
    See more

    Declaration

    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 more

    Declaration

    Swift

    public class DKPagingGenerator<T>