DJIBatteryDelegate

@protocol DJIBatteryDelegate <NSObject>

This protocol provides a delegate method for you to update the battery’s current state.

  • Updates the battery’s current state.

    Declaration

    Objective-C

    - (void)battery:(DJIBattery *_Nonnull)battery
        didUpdateState:(DJIBatteryState *_Nonnull)batteryState;

    Parameters

    battery

    Battery having an updated state.

    batteryState

    The battery’s state.