DJI Mobile SDK Documentation

      class ButtonConfigurationBuilder

      static class ButtonConfigurationBuilder
      Package:dji.common.remotecontroller;import
      Description:

      This class is for generating the instance of ButtonConfiguration

      Class Members:
      method
      method build
      ButtonConfiguration build()
      Package:dji.common.remotecontroller;import
      Description:

      The build method for generating ButtonConfiguration.

      Return:
      ButtonConfigurationAn object of ButtonConfiguration.
      method buildDefaultButtonConfiguration
      ButtonConfigurationBuilder buildDefaultButtonConfiguration()
      Package:dji.common.remotecontroller;import
      Description:

      Build ButtonConfiguration with default configuration.

      Return:
      ButtonConfigurationBuilderAn object of ButtonConfiguration class.
      method buildButtonConfigurationWithMap
      ButtonConfigurationBuilder buildButtonConfigurationWithMap(Map<CustomizableButton, ButtonAction> map)
      Package:dji.common.remotecontroller;import
      Description:

      Build ButtonConfiguration with a Map<CustomizableButton, ButtonAction>.

      Input Parameters:
      Map<CustomizableButton, ButtonAction> mapA Map<CustomizableButton, ButtonAction>.
      Return:
      ButtonConfigurationBuilderAn object of ButtonConfigurationBuilder class.
      method configButton
      ButtonConfigurationBuilder configButton(CustomizableButton button, ButtonAction buttonAction)
      Package:dji.common.remotecontroller;import
      Description:

      Configure one button with a buttonAction, need be called after the calling of buildButtonConfigurationWithMap or buildDefaultButtonConfiguration.

      Input Parameters:
      CustomizableButton buttonAn enum value of CustomizableButton.
      ButtonAction buttonActionAn enum value of ButtonAction.
      Return:
      ButtonConfigurationBuilderAn object of ButtonConfigurationBuilder class.
      method getValidActionsForButton
      ButtonAction[] getValidActionsForButton(CustomizableButton button)
      Package:dji.common.remotecontroller;import
      Description:

      Return the array list of ButtonAction enum values could be configured to one button.

      Input Parameters:
      CustomizableButton buttonAn enum value of CustomizableButton.
      Return:
      ButtonAction[]An array of the ButtonAction enum values.