DJI Mobile SDK Documentation

      class FileDownloadCallback

      interface FileDownloadCallback
      Package:dji.sdk.camera
      Description:

      This callback will notify the process of downloading selected files.

      Class Members:

      Callback Method

      State
      method
      method onStart
      void onStart()
      Package:dji.sdk.camera
      Description:

      Called as a file is about to start downloading.

      method
      method onEnd
      void onEnd()
      Package:dji.sdk.camera
      Description:

      Called when a file has completed downloading.

      method
      method onError
      void onError(Exception exception)
      Package:dji.sdk.camera
      Description:

      Called when there is an error during download.

      Input Parameters:
      Exception exceptionThe error exception.
      method onProgressUpdate
      void onProgressUpdate(int progress)
      Package:dji.sdk.camera
      Description:

      Called to update the progress on downloading a file in percent. Range is [0, 100].

      Input Parameters:
      int progressThe progress of downloading.