DJI Mobile SDK Documentation

      class BatteryInfo

      class BatteryInfo implements DJIValue, JNIProguardKeepTag, ByteStream
      Package:dji.sdk.keyvalue.value.remotecontroller
      Description:

      This class is used to get the remote controller battery information.

      Class Members:
      method getEnabled
      Boolean getEnabled()
      Package:dji.sdk.keyvalue.value.remotecontroller
      Description:

      Get if the remote control battery is valid.

      Return:
      BooleanReturn if the remote control battery is valid.
      method getBatteryPower
      Integer getBatteryPower()
      Package:dji.sdk.keyvalue.value.remotecontroller
      Description:

      Get the remaining power of the remote controller, unit: mah.

      Return:
      IntegerReturn the remaining power of the remote controller, unit: mah.
      method getBatteryPercent
      Integer getBatteryPercent()
      Package:dji.sdk.keyvalue.value.remotecontroller
      Description:

      Get the remaining power percentage of the remote controller.

      Return:
      IntegerReturn the remaining power percentage of the remote controller.