DJIRemoteControllerDelegate
@protocol DJIRemoteControllerDelegate <NSObject>
This protocol provides delegate methods to receive the updated information related to the remote controller.
-
Callback function that updates the Remote Controller’s current hardware state (e.g. the state of the physical buttons and joysticks).
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didUpdateHardwareState:(DJIRCHardwareState)state;
Parameters
rc
Instance of the Remote Controller for which the hardware state will be updated.
state
Current state of the Remote Controller’s hardware state.
-
Callback function that updates the Remote Controller’s current GPS data.
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didUpdateGpsData:(DJIRCGPSData)gpsData;
Parameters
rc
Instance of the Remote Controller for which the GPS data will be updated.
gpsData
Current state of the Remote Controller’s GPS data.
-
Callback function that updates the Remote Controller’s current battery state.
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didUpdateBatteryState:(DJIRCBatteryInfo)batteryInfo;
Parameters
rc
Instance of the Remote Controller for which the battery state will be updated.
batteryInfo
Current state of the Remote Controller’s battery state.
-
Callback function that gets called when a slave Remote Controller makes a request to a master Remote Controller to control the gimbal using the method requestGimbalControlRightWithCallbackBlock.
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didReceiveGimbalControlRequestFromSlave:(DJIRCInfo *_Nonnull)slave;
Parameters
rc
Instance of the Remote Controller.
slave
Information of the slave making the request to the master Remote Controller.
-
Callback function that updates the Remote Focus State, only support Focus product. If the isRCRemoteFocusCheckingSupported is YES, this delegate method will be called.
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didUpdateRemoteFocusState:(DJIRCRemoteFocusState)remoteFocusState;
Parameters
rc
Instance of the Remote Controller for which the battery state will be updated.
remoteFocusState
Current state of the Remote Focus state.
-
Callback function that updates the remote controller’s state related to the master and slave mode. Only supported by Inspire 2.
Declaration
Objective-C
- (void)remoteController:(DJIRemoteController *_Nonnull)rc didUpdateMasterSlaveState:(DJIRCMasterSlaveState *_Nonnull)masterSlaveState;
Parameters
rc
Instance of the Remote Controller
masterSlaveState
The remote controller’s state related to the master and slave mode.