DJI Mobile SDK Documentation

      class ChargeRemaining

      @EXClassNullAway
      class ChargeRemaining
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.CHARGE_REMAINING
      Description:

      Remote Controller's battery info.

      Class Members:
      interface
      interface Callback
      interface Callback
      Package:dji.common.remotecontroller
      SDK Key:RemoteControllerKey.CHARGE_REMAINING
      Description:

      Callback function that updates the Remote Controller's current battery state.

      Interface Methods:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(@NonNull ChargeRemaining chargeRemaining)
      Package:dji.common.remotecontroller
      Description:

      Callback function that updates the Remote Controller's current battery state.

      Input Parameters:
      @NonNull ChargeRemaining chargeRemainingCurrent state of the Remote Controller's battery state.


      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.