DJI Mobile SDK Documentation

      class IDeviceStatusManager

      interface IDeviceStatusManager
      Package:dji.v5.manager.interfaces
      Description:

      Class that is used to manage device status. Users can get and monitor device status. For example, Aircraft disconnected, Sensor Error, Low Voltage Warning, etc.

      Supported since MSDK 5.0.0

      Class Members:
      method addDJIDeviceStatusChangeListener
      void addDJIDeviceStatusChangeListener(DJIDeviceStatusChangeListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Add the listener of the device status.

      Supported since MSDK 5.0.0

      Input Parameters:
      DJIDeviceStatusChangeListener listenerListener of the device status.
      method removeDJIDeviceStatusChangeListener
      void removeDJIDeviceStatusChangeListener(DJIDeviceStatusChangeListener listener)
      Package:dji.v5.manager.interfaces
      Description:

      Remove the listener of the device status.

      Supported since MSDK 5.0.0

      Input Parameters:
      DJIDeviceStatusChangeListener listenerListener of the device status.
      method clearAllListeners
      void clearAllListeners()
      Package:dji.v5.manager.interfaces
      Description:

      Remove all listeners of the device status.

      Supported since MSDK 5.0.0

      method getCurrentDJIDeviceStatus
      DJIDeviceStatus getCurrentDJIDeviceStatus()
      Package:dji.v5.manager.interfaces
      Description:

      Get the current device status.

      Supported since MSDK 5.0.0

      Return:
      DJIDeviceStatusReturn the current device status.
      enum DJIDeviceStatus
      enum DJIDeviceStatus implements IDJIDeviceStatus
      Package:dji.v5.manager.diagnostic
      Description:

      Device status class. It is used to get the device status.

      Supported since MSDK 5.0.0

      Class Members:
      method statusCode
      @Override
      String statusCode()
      Package:dji.v5.manager.diagnostic
      Description:

      Get the device status code.

      Supported since MSDK 5.0.0

      Return:
      StringReturn the device status code.
      method description
      @Override
      String description()
      Package:dji.v5.manager.diagnostic
      Description:

      Get the device status description.

      Supported since MSDK 5.0.0

      Return:
      StringReturn the device status description.
      method warningLevel
      WarningLevel warningLevel()
      Package:dji.v5.manager.diagnostic
      Description:

      Get the device status warning level.

      Supported since MSDK 5.0.0

      Return:
      WarningLevelReturn the device status warning level.
      enum WarningLevel
      enum WarningLevel
      Package:dji.v5.manager.diagnostic
      Description:

      Waring level class.

      Supported since MSDK 5.0.0

      Enum Members:
      NORMALNormal.
      NOTICENotice.
      CAUTIONCaution.
      WARNINGWarning.
      SERIOUS_WARNINGSerious warning.
      Class Members: