DJI Mobile SDK Documentation

      class UpgradeFirmwareListener

      interface UpgradeFirmwareListener
      Package:dji.sdk.upgrade.component
      Description:

      This listener provides methods to receive the upgrade information, the upgrade firmware state and the upgrade progress.

      Class Members:

      Callback Method

      method onUpgradeFirmwareStateUpdated
      void onUpgradeFirmwareStateUpdated(@NonNull UpgradeComponent component, @NonNull UpgradeFirmwareState state)
      Package:dji.sdk.upgrade.component
      Description:

      Called when the upgrade firmware state has been changed.

      Input Parameters:
      @NonNull UpgradeComponent componentThe component of which the upgrade firmware state has been changed.
      @NonNull UpgradeFirmwareState stateThe upgrade firmware state.
      method onFirmwareUpgradeProgressUpdated
      void onFirmwareUpgradeProgressUpdated(@NonNull UpgradeComponent component, @NonNull FirmwareUpgradeProgress progress)
      Package:dji.sdk.upgrade.component
      Description:

      Called when the upgrade is in progress.

      Input Parameters:
      @NonNull UpgradeComponent componentThe component of which the upgrade progress is updating.
      @NonNull FirmwareUpgradeProgress progressThe upgrade progress information.
      method onConsistencyUpgradeRequestReceived
      void onConsistencyUpgradeRequestReceived(@NonNull UpgradeComponent component)
      Package:dji.sdk.upgrade.component
      Description:

      Raised when the firmware version is inconsistent among modules in component.
      See UpgradeComponent. Invoke startFirmwareConsistencyUpgrade to start consistency upgrade.
      The update frequency is 1Hz.
      Stop to notify in following situation:
      - Firmware version among modules in component is consistent.
      - Firmware consistency upgrade stops.
      - DJIUpgradeComponent_cancelConsistencyUpgrade is invoked. Reboot the device to receive this notification again.

      method onLatestFirmwareInformationUpdated
      void onLatestFirmwareInformationUpdated(@NonNull UpgradeComponent component, FirmwareInformation firmwareInformation)
      Package:dji.sdk.upgrade.component
      Description:

      Updates the latest firmware version information when the user is logged in. Please use DJI GO/DJI Pilot to upgrade to the latest firmware.

      Input Parameters:
      @NonNull UpgradeComponent componentThe component of which the latest firmware version information have been updated.
      FirmwareInformation firmwareInformationThe latest firmware information.