DJI Mobile SDK Documentation

      class DUXPictureVideoSwitchWidget

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

      uilib_image

      A switch button shows weather the camera mode is in shoot photo or record video.

      Interaction:

      Use switch button to toggle the camera mode.

      Usage:

      Preferred Aspect Ratio: 56:45. Check DUXTrailingBarViewController for an example of its usage.

      Class Members:
      property
      property mode
      @property DJICameraMode mode
      Header:DUXPictureVideoSwitchWidget.h
      Description:

      The current camera mode of the product. Defaults to still photo.

      property preferredCameraIndex
      @property (nonatomic) NSUInteger preferredCameraIndex
      Header:DUXPictureVideoSwitchWidget.h
      Description:

      The index of the camera the widget controls. Default value is 0.