DJI Mobile SDK Documentation

      class Callback

      interface Callback
      Package:dji.common.battery
      Description:

      This interface provides a callback to update the battery's current state.

      Class Members:

      Callback Method

      State
      method
      method onUpdate
      void onUpdate(BatteryState batteryState)
      Package:dji.common.battery
      Description:

      Callback to update battery state.

      Input Parameters:
      BatteryState batteryStateThe battery's state.