DJIHandheldControllerDelegate
@protocol DJIHandheldControllerDelegate <NSObject>
This protocol provides a delegate method to receive the updated power mode of the handheld controller.
-
Tells the delegate that a handheld controller’s power mode has been updated.
Declaration
Objective-C
- (void)handheldController:(DJIHandheldController *_Nonnull)controller didUpdatePowerMode:(DJIHandheldPowerMode)powerMode;
Parameters
controller
The handheld controller that updates the power mode.
powerMode
The handheld controller’s current power mode.
-
Delegate for the handheld controller’s current hardware state (e.g. the state of the physical buttons and joysticks). Supported only by Osmo Mobile.
Declaration
Objective-C
- (void)handheldController:(DJIHandheldController *_Nonnull)controller didUpdateHardwareState:(nonnull DJIHandheldControllerHardwareState *)state;
Parameters
controller
The handheld controller that updates the hardware state.
powerMode
The handheld controller’s current hardware state.