DJI Mobile SDK Documentation

      class Callback

      interface Callback

      Callback that is called when the scheduler finishes downloading content for a fetch media file task. If multiple content types are defined for a file, this completion block will be called at the completion of each content type being downloaded. The order content types will be downloaded in is first THUMBNAIL, then PREVIEW.

      Class Members:

      Callback Method

      method onUpdate
      void onUpdate(MediaFile file, FetchMediaTaskContent option, DJIError error)

      Called each time the scheduler finishes downloading content.

      Input Parameters:
      MediaFile filefile to execute task on.
      FetchMediaTaskContent optionAn enum value of FetchMediaTaskContent.
      DJIError errorError retrieving the value.