DJI Mobile SDK Documentation

      class DJIRCButtonConfiguration

      @interface DJIRCButtonConfiguration : NSObject <NSCopying, NSMutableCopying>
      Header:DJIRemoteControllerBaseTypes.h
      Inherits From:NSObject
      Description:

      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.

      Class Members:

      Customize RC

      Button Configuration
      property
      property C1Action
      @property (nonatomic, readonly) DJIRCButtonAction C1Action
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the C1 button.

      See Also:

      DJIRCButtonAction

      property
      property C2Action
      @property (nonatomic, readonly) DJIRCButtonAction C2Action
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the C2 button.

      See Also:

      DJIRCButtonAction

      property
      property C3Action
      @property (nonatomic, readonly) DJIRCButtonAction C3Action
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the C3 button.

      See Also:

      DJIRCButtonAction

      property
      property C4Action
      @property (nonatomic, readonly) DJIRCButtonAction C4Action
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the C4 button.

      See Also:

      DJIRCButtonAction

      property
      property BAAction
      @property (nonatomic, readonly) DJIRCButtonAction BAAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BA button.

      See Also:

      DJIRCButtonAction

      property
      property BBAction
      @property (nonatomic, readonly) DJIRCButtonAction BBAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BB button.

      See Also:

      DJIRCButtonAction

      property
      property BCAction
      @property (nonatomic, readonly) DJIRCButtonAction BCAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BC button.

      See Also:

      DJIRCButtonAction

      property
      property BDAction
      @property (nonatomic, readonly) DJIRCButtonAction BDAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BD button.

      See Also:

      DJIRCButtonAction

      property
      property BEAction
      @property (nonatomic, readonly) DJIRCButtonAction BEAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BE button.

      See Also:

      DJIRCButtonAction

      property
      property BFAction
      @property (nonatomic, readonly) DJIRCButtonAction BFAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BF button.

      See Also:

      DJIRCButtonAction

      property
      property BGAction
      @property (nonatomic, readonly) DJIRCButtonAction BGAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BG button.

      See Also:

      DJIRCButtonAction

      property
      property BHAction
      @property (nonatomic, readonly) DJIRCButtonAction BHAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the BH button.

      See Also:

      DJIRCButtonAction

      property
      property TDAction
      @property (nonatomic, readonly) DJIRCButtonAction TDAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the TD button.

      See Also:

      DJIRCButtonAction

      property
      property MENUAction
      @property (nonatomic, readonly) DJIRCButtonAction MENUAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the MENU button.

      See Also:

      DJIRCButtonAction

      property
      property LSAction
      @property (nonatomic, readonly) DJIRCButtonAction LSAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the LS button.

      See Also:

      DJIRCButtonAction

      property
      property RSAction
      @property (nonatomic, readonly) DJIRCButtonAction RSAction
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      Action bound to the RS button.

      See Also:

      DJIRCButtonAction

      property buttonActions
      @property (nonatomic, readonly)  NSDictionary<NSNumber *, NSNumber *> *buttonActions
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      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.

      class method defaultButtonActions
      +(NSDictionary<NSNumber *,NSNumber *> *)defaultButtonActions
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      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.

      Return:
      NSDictionary<NSNumber *,NSNumber *> *An NSDictionary of NSNumber objects.
      method getValidActionsForButton
      - (NSArray *)getValidActionsForButton:(DJIRCCustomizableButton)button
      Header:DJIRemoteControllerBaseTypes.h
      Description:

      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).

      Input Parameters:
      DJIRCCustomizableButton buttonThe button to check.
      Return:
      NSArray *The list of valid actions for a button.