DJI Mobile SDK Documentation

      class PayloadWidgetDownloadListener

      interface PayloadWidgetDownloadListener
      Package:dji.common.payload
      Description:

      Payload widget Download listener.

      Class Members:

      Callback Method

      State
      method
      method onProgress
      void onProgress(int process)
      Package:dji.common.payload
      Description:

      Called when fetching widget data is in progress.

      Input Parameters:
      int processThe value is from 0 to 100.
      method
      method onSuccess
      void onSuccess()
      Package:dji.common.payload
      Description:

      Called when fetching widget data successful.

      method
      method onFailure
      void onFailure(DJIError error)
      Package:dji.common.payload
      Description:

      Called when the payload file download failed.

      Input Parameters:
      DJIError errorThe error information.