@interface DJIRCButtonConfiguration : NSObject <NSCopying, NSMutableCopying> |
| Header: | DJIRemoteControllerBaseTypes.h |
| Inherits From: | NSObject |
The configuration for the customizable buttons on the remote controller. The configuration returned by SDK interfaces is immutable. Call mutableCopy to get a mutable copy in class DJIMutableRCButtonConfiguration and change the configuration.
@property (nonatomic, readonly) DJIRCButtonAction C1Action |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the C1 button.
@property (nonatomic, readonly) DJIRCButtonAction C2Action |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the C2 button.
@property (nonatomic, readonly) DJIRCButtonAction C3Action |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the C3 button.
@property (nonatomic, readonly) DJIRCButtonAction C4Action |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the C4 button.
@property (nonatomic, readonly) DJIRCButtonAction BAAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BA button.
@property (nonatomic, readonly) DJIRCButtonAction BBAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BB button.
@property (nonatomic, readonly) DJIRCButtonAction BCAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BC button.
@property (nonatomic, readonly) DJIRCButtonAction BDAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BD button.
@property (nonatomic, readonly) DJIRCButtonAction BEAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BE button.
@property (nonatomic, readonly) DJIRCButtonAction BFAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BF button.
@property (nonatomic, readonly) DJIRCButtonAction BGAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BG button.
@property (nonatomic, readonly) DJIRCButtonAction BHAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the BH button.
@property (nonatomic, readonly) DJIRCButtonAction TDAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the TD button.
@property (nonatomic, readonly) DJIRCButtonAction LSAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the LS button.
@property (nonatomic, readonly) DJIRCButtonAction RSAction |
| Header: | DJIRemoteControllerBaseTypes.h |
Action bound to the RS button.
@property (nonatomic, readonly) NSDictionary<NSNumber *, NSNumber *> *buttonActions |
| Header: | DJIRemoteControllerBaseTypes.h |
A dictionary representing the mapping between a customizable button and its action. The key is a NSNumber with value among DJIRCCustomizableButton and the value is a NSNumber with value among DJIRCButtonAction.
+(NSDictionary<NSNumber *,NSNumber *> *)defaultButtonActions |
| Header: | DJIRemoteControllerBaseTypes.h |
Fetch a dictionary representing the mapping between a customizable button and its action. The key is a NSNumber with value among DJIRCCustomizableButton and the value is a NSNumber with value among DJIRCButtonAction.
| NSDictionary<NSNumber *,NSNumber *> * | An NSDictionary of NSNumber objects. |
- (NSArray *)getValidActionsForButton:(DJIRCCustomizableButton)button |
| Header: | DJIRemoteControllerBaseTypes.h |
Gets the valid actions for a button. For the compatbility with DJI Go, there are rules to follow when assigning an action to a button:
- DJIRCButtonActionNotDefined is valid for all buttons and it can be assigned to multiple buttons.
- An action can be only assigned to one button.
- For Button TD, the possible valid actions include DJIRCButtonActionNotDefined, DJIRCButtonActionFocus and the actions reserved by SDK (e.g. DJIRCButtonActionZoomOut).
| DJIRCCustomizableButton button | The button to check. |
| NSArray * | The list of valid actions for a button. |