DJI Mobile SDK Documentation

      class UpgradeManager

      class UpgradeManager
      Package:dji.sdk.upgrade
      Description:

      This interface is used to manage the component that can be upgraded. It is only supported by Mavic Air, Mavic 2 series and Matrice 300 RTK.

      Class Members:
      method getAircraftUpgradeComponent
      @Nullable
      UpgradeComponent getAircraftUpgradeComponent()
      Package:dji.sdk.upgrade
      Description:

      The upgrade component is aircraft. Upgrade this component when gimbal, battery, flight controller and other internal modules' firmware versions are inconsistent. It is only supported by Mavic Air, Mavic 2 series.

      Return:
      UpgradeComponentAn object of UpgradeComponent.
      method getRemoteControllerUpgradeComponent
      @Nullable
      UpgradeComponent getRemoteControllerUpgradeComponent()
      Package:dji.sdk.upgrade
      Description:

      The upgrade component is remote controller. Upgrade this component when its internal modules' firmware versions are inconsistent. It is only supported by Mavic 2 series.

      Return:
      UpgradeComponentAn object of UpgradeComponent.
      method getDetectedComponentsToUpgrade
      @NonNull
      List<UpgradeComponent> getDetectedComponentsToUpgrade()
      Package:dji.sdk.upgrade
      Description:

      Get the list of detected components that can be upgraded. The list will change when a component is added or removed. Upgrade a component in the list when its internal modules' firmware versions are inconsistent. It is only supported by Matrice 300 RTK.

      Return:
      List<UpgradeComponent>A list of UpgradeComponent.
      Upgrade listener
      method
      method addUpgradeComponentChangeListener
      void addUpgradeComponentChangeListener(@NonNull UpgradeComponentChangeListener listener)
      Package:dji.sdk.upgrade
      Description:

      Adds a listener to receive the UpgradeComponentChangeListener. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @NonNull UpgradeComponentChangeListener listenerAn object of UpgradeComponentChangeListener to be added in the internal listener map.
      method removeUpgradeComponentChangeListener
      void removeUpgradeComponentChangeListener(@NonNull UpgradeComponentChangeListener listener)
      Package:dji.sdk.upgrade
      Description:

      Removes a listener that is added by passing to addUpgradeComponentChangeListener. It is only supported by Matrice 300 RTK.

      Input Parameters:
      @NonNull UpgradeComponentChangeListener listenerThe listener to be removed in the internal listener map.
      method removeAllUpgradeComponentChangeListener
      void removeAllUpgradeComponentChangeListener()
      Package:dji.sdk.upgrade
      Description:

      Remove all the listeners are added by passing to addUpgradeComponentChangeListener. It is only supported by Matrice 300 RTK.

      Input Parameters:
      SOURCE_DIFFERENT listenerThe listener to be removed in the internal listener map.