Other Type Definitions

The following type definitions are available globally.

  • Special custom response block for performing SDK token migration between API v1 tokens and API v2 tokens. First argument indicates whether the migration should be attempted again (primarily when there was no active network connection). The second argument indicates whether the supplied app key and / or secret is invalid for some or all tokens. The third argument is a list of token data for each token that was unsuccessfully migrated. Each element in the list is a list of length 4, where the first element is the Dropbox user ID, the second element is the OAuth 1 access token, the third element is the OAuth 1 access token secret, and the fourth element is the consumer app key that was stored with the token.

    Declaration

    Objective-C

    typedef void (^DBTokenMigrationResponseBlock)(
        BOOL, BOOL, NSArray<NSArray<NSString *> *> *_Nonnull)

    Swift

    typealias DBTokenMigrationResponseBlock = (Bool, Bool, [[String]]) -> Void
  • Callback block for oauth result.

    Declaration

    Objective-C

    typedef void (^DBOAuthCompletion)(DBOAuthResult *_Nullable)

    Swift

    typealias DBOAuthCompletion = (DBOAuthResult?) -> Void