class IUpgradeManager
interface IUpgradeManager
Package: dji.v5.manager.interfaces
Description:
Class to manage Firmware upgrade, It is used to get the latest firmware version and release note. After getting the upgradeable prompt, you can open the official DJI App to upgrade the firmware online, or call the startOfflineUpgrade
firmware offline upgrade interface to upgrade. Supported since MSDK 5.1.0
Class Members:
method addUpgradeableComponentListener
void addUpgradeableComponentListener (@NonNull UpgradeableComponentListener listener)
Package: dji.v5.manager.interfaces
Description:
Add a listener for upgradeable components. After obtaining the upgradeable component information, you can call getUpgradeableComponents
to obtain the types of all upgradeable components, whether they are upgradeable or not, the current firmware information, and the latest firmware information. Supported since MSDK 5.1.0
method removeUpgradeableComponentListener
void removeUpgradeableComponentListener (@NonNull UpgradeableComponentListener listener)
Package: dji.v5.manager.interfaces
Description:
Remove listeners for upgradeable components. Supported since MSDK 5.1.0
method removeAllUpgradeableComponentListener
void removeAllUpgradeableComponentListener ()
Package: dji.v5.manager.interfaces
Description:
Remove all listeners of upgradeable components. Supported since MSDK 5.1.0
method getUpgradeableComponents
List<UpgradeableComponent> getUpgradeableComponents ()
Package: dji.v5.manager.interfaces
Description:
Gets a list of upgradeable components. Supported since MSDK 5.1.0
Return:
method checkUpgradeableComponents
void checkUpgradeableComponents (CommonCallbacks.CompletionCallbackWithParam<ComponentType> callback)
Package: dji.v5.manager.interfaces
Description:
Refresh upgradeable component information. Calling this interface will update the latest upgradeable information from the server. Supported since MSDK 5.1.0
method startOfflineUpgrade
void startOfflineUpgrade (ComponentType type , String offlineFirmwareFilePath , CommonCallbacks.CompletionCallback callback)
Package: dji.v5.manager.interfaces
Description:
Start offline upgrade. The offline upgrade package can be obtained from the download page of the corresponding product on the DJI official website. Supported since MSDK 5.3.0
ComponentType type The type of component that needs to be upgraded. String offlineFirmwareFilePath The offline upgrade package path corresponding to the upgrade component. The offline upgrade package can be obtained from the download page of the corresponding product on the DJI official website. CommonCallbacks .CompletionCallback callback Return the result of the execution result.
method addUpgradeInfoListener
void addUpgradeInfoListener (UpgradeInfoListener listener )
Package: dji.v5.manager.interfaces
Description:
Add a listener for upgrade progress information. Supported since MSDK 5.3.0
method removeUpgradeInfoListener
void removeUpgradeInfoListener (UpgradeInfoListener listener)
Package: dji.v5.manager.interfaces
Description:
Remove the listener for upgrade progress information. Supported since MSDK 5.3.0
method removeAllUpgradeInfoListener
void removeAllUpgradeInfoListener ()
Package: dji.v5.manager.interfaces
Description:
Remove all listeners for upgrade progress information. Supported since MSDK 5.3.0
enum ComponentType
Package: dji.v5.manager.aircraft.upgrade.model
Description:
Upgradable component types, including aircraft and remote controller.
Supported since MSDK 5.1.0
Enum Members:
AIRCRAFTAircraft. REMOTE_CONTROLLERRemote controller.
Class Members:
enum UpgradeableComponentState
enum UpgradeableComponentState
Package: dji.v5.manager.aircraft.upgrade.model
Description:
Upgradable component state.
Supported since MSDK 5.1.0
Enum Members:
IDLEIdle, initialized state. CHECKINGChecking update, pull the latest firmware information from the server. UP_TO_DATEUp to date. The current firmware is the latest version, no need to upgrade. UPGRADE_AVAILABLEUpgrade availble. The current firmware needs to be upgraded.
Class Members:
enum UpgradeProgressState
enum UpgradeProgressState
Package: dji.v5.manager.aircraft.upgrade
Description:
Upgrade progress status.
Supported since MSDK 5.3.0
Enum Members:
INITIALIZINGUpgrade initializing. TRANSFERRINGUpgrade transferring. TRANSFER_FAILEDUpgrade transfer failed. TRANSFER_SUCCESSUpgrade transfer success. UPGRADINGUpgrading. UPGRADE_FAILEDUpgrade failed. UPGRADE_SUCCESSUpgrade success.
Class Members: