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
rcInstance of the Remote Controller for which the hardware state will be updated.
stateCurrent 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
rcInstance of the Remote Controller for which the GPS data will be updated.
gpsDataCurrent 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
rcInstance of the Remote Controller for which the battery state will be updated.
batteryInfoCurrent 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
rcInstance of the Remote Controller.
slaveInformation 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
rcInstance of the Remote Controller for which the battery state will be updated.
remoteFocusStateCurrent 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
rcInstance of the Remote Controller
masterSlaveStateThe remote controller’s state related to the master and slave mode.
View on GitHub
DJIRemoteControllerDelegate Protocol Reference