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
batteryBattery having an updated state.
batteryStateThe battery’s state.
View on GitHub
DJIBatteryDelegate Protocol Reference