DJI Mobile SDK Documentation

      class FiveDButton

      static class FiveDButton extends Button
      Package:dji.common.remotecontroller
      Inherits From:Button
      SDK Key:RemoteControllerKey.FIVE_D_BUTTON
      Description:

      State of the 5D button on the remote controller. Vertical movement, horizontal movement and if it is pressed are not exclusive.

      Class Members:
      method getVerticalDirection
      FiveDButtonDirection getVerticalDirection()
      Package:dji.common.remotecontroller
      Description:

      Get the movement in the vertical direction of the 5D button. Up is the positive direction and down is the negative direction.

      Return:
      FiveDButtonDirectionAn enum value of FiveDButtonDirection
      method getHorizontalDirection
      FiveDButtonDirection getHorizontalDirection()
      Package:dji.common.remotecontroller
      Description:

      Get the movement in the horizontal direction of the 5D button. Right is the positive direction and left is the negative direction.

      Return:
      FiveDButtonDirectionAn enum value of FiveDButtonDirection
      enum FiveDButtonDirection
      static enum FiveDButtonDirection
      Package:dji.common.remotecontroller
      Description:

      Movement direction of the remote controller's 5D button.

      Enum Members:
      MIDDLEButton has no movement in either the vertical direction or the horizontal direction.
      POSITIVEButton is moved in the positive direction which is up or right.
      NEGATIVEButton is moved in the negative direction which is down or left.
      Class Members:
      Inherited Methods:
      dji.common.remotecontroller.Button
      method
      method isPresent
      boolean isPresent()
      Package:dji.common.remotecontroller
      Description:

      true if the hardware button is present.

      Return:
      booleanA boolean value.
      method
      method isClicked
      boolean isClicked()
      Package:dji.common.remotecontroller
      Description:

      true if button is pressed down.

      Return:
      booleanA boolean value.