DJI Mobile SDK Documentation

      class BatteryState

      @EXClassNullAway
      class BatteryState
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.BATTERY_STATE
      Description:

      Remote Controller's battery information. Only supported by DJI Smart Controller Enterprise with firmware version v01.00.01.01 and above.

      Class Members:


      Members

      method getRemainingChargeInmAh
      int getRemainingChargeInmAh()
      Package:dji.common.remotecontroller
      Description:

      The remaining power in the Remote Controller's battery in milliamp hours (mAh).

      Return:
      intAn int value.
      method getRemainingChargeInPercent
      int getRemainingChargeInPercent()
      Package:dji.common.remotecontroller
      Description:

      The remaining power in the Remote Controller's battery as a percentage in the range of [0, 100].

      Return:
      intAn int value.
      method isCharging
      boolean isCharging()
      Package:dji.common.remotecontroller
      Description:

      Whether battery of remote controller is charging. The battery may be fully charged when it returns false.

      Return:
      booleanAn int value.