DJI Mobile SDK Documentation

      class DUXTakeOffWidget

      @interface DUXTakeOffWidget : DUXWidget
      Header:DUXTakeOffWidget.h
      Inherits From:DUXWidget
      Display:

      uilib_image

      Widget has three states with three different interactions.

      • White icon with arrow up indicates the aircraft is not flying and the widget interaction is to start taking off.
      • White icon with arrow down indicates the aircraft is flying and the widget interaction is to start landing.
      • Red icon indicates the aircraft is landing and the widget interaction is to cancel landing.
      Interaction:

      Tapping the widget will open up a Dialog to confirm the desired action. Slide the dialog from left to right to start the action.

      Usage:

      Preferred Aspect Ratio: 1:1

      Class Members:
      enum DUXAircraftTakeOffLandingState
      typedef NS_ENUM(NSUInteger, DUXAircraftTakeOffLandingState)
      Header:DUXTakeOffWidget.h
      Description:

      Current state of the takeoff widget.

      Enum Members:
      DUXAircraftTakeOffLandingStateCancelTake off or landing is currently in progress and tapping the red cancel icon will cause the action in progress to be cancelled.
      property aircraftState
      @property DUXAircraftTakeOffLandingState aircraftState
      Header:DUXTakeOffWidget.h
      Description:

      The current flying state of the aircraft used to determine which image to use with the widget.

      See Also:

      DUXAircraftTakeOffLandingState