Other Type Aliases

The following type aliases are available globally.

  • Special custom response block for batch upload. The first argument is a mapping of client-side NSURLs to batch upload result entries (each of which indicates the success / failure of the upload for the corresponding file). This object will be nonnull if the final call to /upload_session/finish_batch/check is successful. The second argument is the route-specific error from /upload_session/finish_batch/check, which is generally not able to be handled at runtime, but instead should be used for debugging purposes. This object will be nonnull if there is a route-specific error from the call to /upload_session/finish_batch/check. The third argument is the general request error from /upload_session/finish_batch/check. This object will be nonnull if there is a request error from the call to /upload_session/finish_batch/check. The fourth argument is a mapping of client-side NSURLs to general request errors, which occured during the upload of the corresponding file.

    Declaration

    Swift

    public typealias BatchUploadResponseBlock = ([URL : Files.UploadSessionFinishBatchResultEntry]?, BatchUploadError?, [URL : BatchUploadError]) -> Void
  • Callback block for oauth result.

    Declaration

    Swift

    public typealias DropboxOAuthCompletion = (DropboxOAuthResult?) -> Void