DJI Mobile SDK Documentation

      class WarningStatusItem

      class WarningStatusItem implements Comparable<WarningStatusItem>
      Package:dji.common.logics.warningstatuslogic
      Description:

      This class wraps the required elements of the status into one WarningStatusItem.

      Class Members:
      enum WarningLevel
      enum WarningLevel
      Package:dji.common.logics.warningstatuslogic
      Description:

      The warning level of the status

      Enum Members:
      NONEThe status has an undetermined warning level.
      OFFLINEThe status is offline.
      GOODThe status is good.
      WARNINGThe status is a warning.
      ERRORThe status is an error.
      Class Members:
      method isUrgentMessage
      boolean isUrgentMessage()
      Package:dji.common.logics.warningstatuslogic
      Description:

      Get the urgency of the message.

      Return:
      booleantrue if message is urgent, false otherwise.
      method getWarningLevel
      WarningLevel getWarningLevel()
      Package:dji.common.logics.warningstatuslogic
      Description:

      Get the warning level of the message.

      Return:
      WarningLevelWarningLevel type of the warning level.
      method getMessage
      String getMessage()
      Package:dji.common.logics.warningstatuslogic
      Description:

      Get the message of the warning status item.

      Return:
      StringString message for the WarningStatusItem.
      method getDefaultItem
      static WarningStatusItem getDefaultItem()
      Package:dji.common.logics.warningstatuslogic
      Description:

      Get a default warning status item with
      - Warning level: WarningLevel.OFFLINE
      - urgentMessage: false
      - message: "" (Empty string)
      This can be used for initialization.

      Return:
      static WarningStatusItemDefault WarningStatusItem.
      method getTestItem
      static WarningStatusItem getTestItem()
      Package:dji.common.logics.warningstatuslogic
      Description:

      Get a test warning status item with
      - Warning level: WarningLevel.ERROR
      - urgentMessage: true
      - message: "Test Warning Status Logic Item"
      This can be used for unit and integration testing as required.

      Return:
      static WarningStatusItemDefault WarningStatusItem.