DJI Mobile SDK Documentation

      class DJIHandheldControllerHardwareState

      @interface DJIHandheldControllerHardwareState : NSObject
      Header:DJIHandheldControllerBaseTypes.h
      Inherits From:NSObject
      Description:

      The status of the shutter button and record button on the handheld controller. Used by Osmo Mobile only.

      Class Members:
      property recordAndShutterButtons
      @property(nonatomic, readonly) DJIHandheldRecordAndShutterButtons recordAndShutterButtons
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the shutter button and record button.

      See Also:

      DJIHandheldRecordAndShutterButtons

      Trigger
      property
      property triggerButton
      @property(nonatomic, readonly) DJIHandheldButtonClickEvent triggerButton
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the trigger button.

      See Also:

      DJIHandheldButtonClickEvent

      property
      property modeButton
      @property(nonatomic, readonly) DJIHandheldButtonClickEvent modeButton
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the mode button. It is only supported by Osmo Mobile 2.

      See Also:

      DJIHandheldButtonClickEvent

      property isTriggerBeingPressed
      @property(nonatomic, readonly) BOOL isTriggerBeingPressed
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      YES when the trigger is being pressed. It is only supported in firmware version 1.2.0.40 or above.

      property isModeButtonBeingPressed
      @property(nonatomic, readonly) BOOL isModeButtonBeingPressed
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      YES when the mode button is being pressed. It is only supported by OSMO Mobile 2.

      property stickVerticalDirection
      @property(nonatomic, readonly) DJIHandheldStickVerticalDirection stickVerticalDirection
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the joystick in vertical direction.

      See Also:

      DJIHandheldStickVerticalDirection

      property stickHorizontalDirection
      @property(nonatomic, readonly) DJIHandheldStickHorizontalDirection stickHorizontalDirection
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the joystick in horizontal direction.

      See Also:

      DJIHandheldStickHorizontalDirection

      Joystick Position
      property
      property stick
      @property(nonatomic, readonly) DJIStick stick
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Position of the stick in both vertical and horizontal direction. Only supported in firmware version 1.2.0.40 or above.

      See Also:

      DJIStick

      Zoom Slider
      property
      property zoomSlider
      @property(nonatomic, readonly) DJIHandheldZoomSlider zoomSlider
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the zoom slider. It is only supported by Osmo Mobile 2.

      See Also:

      DJIHandheldZoomSlider

      enum DJIHandheldRecordAndShutterButtons
      typedef NS_ENUM (uint8_t, DJIHandheldRecordAndShutterButtons)
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      The status of the shutter button and record button on the handheld controller.

      Enum Members:
      DJIHandheldRecordAndShutterButtonsIdleNo buttons have been pressed.
      DJIHandheldRecordAndShutterButtonsShutterClickOnly the shutter button was pressed and released.
      DJIHandheldRecordAndShutterButtonsRecordClickOnly the record button was pressed and released.
      DJIHandheldRecordAndShutterButtonsShutterLongClickThe shutter button is being pressed without release.
      DJIHandheldRecordAndShutterButtonsUnknownThe button status is unknown.
      enum DJIHandheldButtonClickEvent
      typedef NS_ENUM (uint8_t, DJIHandheldButtonClickEvent)
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      The status of the shutter button and record button on the handheld controller.

      Enum Members:
      DJIHandheldButtonClickEventIdleTrigger button status is idle.
      DJIHandheldButtonClickEventSingleClickTrigger button is pressed and released.
      DJIHandheldButtonClickEventDoubleClickTrigger button is pressed twice quickly.
      DJIHandheldButtonClickEventTripleClickTrigger button is pressed three times quickly.
      DJIHandheldButtonClickEventUnknownTrigger button status is unknown.
      enum DJIHandheldStickVerticalDirection
      typedef NS_ENUM (uint8_t, DJIHandheldStickVerticalDirection)
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the handheld joystick in vertical direction.

      Enum Members:
      DJIHandheldStickVerticalDirectionMiddleJoystick has no movement in the vertical direction.
      DJIHandheldStickVerticalDirectionUpJoystick is moved up in the vertical direction.
      DJIHandheldStickVerticalDirectionDownJoystick is moved down in the vertical direction.
      DJIHandheldStickVerticalDirectionUnknownJoystick status in the vertical direction is unknown.
      enum DJIHandheldStickHorizontalDirection
      typedef NS_ENUM (uint8_t, DJIHandheldStickHorizontalDirection)
      Header:DJIHandheldControllerBaseTypes.h
      Description:

      Status of the handheld joystick in horizontal direction.

      Enum Members:
      DJIHandheldStickHorizontalDirectionMiddleJoystick has no movement in the horizontal direction.
      DJIHandheldStickHorizontalDirectionLeftJoystick is moved left in the horizontal direction.
      DJIHandheldStickHorizontalDirectionRightJoystick is moved right in the horizontal direction.
      DJIHandheldStickHorizontalDirectionUnknownJoystick status in the horizontal direction is unknown.