DJI Mobile SDK Documentation

      class Callback

      interface Callback
      Package:dji.sdk.media
      Description:

      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

      State
      method
      method onUpdate
      void onUpdate(MediaFile file, FetchMediaTaskContent option, DJIError error)
      Package:dji.sdk.media
      Description:

      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.