DJI Mobile SDK Documentation

      class DUXExposureFocusSwitchWidget

      @interface DUXExposureFocusSwitchWidget : DUXWidget
      Header:DUXExposureFocusSwitchWidget.h
      Inherits From:DUXWidget
      Description:

      Action widget that allows switching between between Exposure and Focus controls when touching. Not supported on Spark.

      Usage:

      Preferred Aspect Ratio: 35:35

      Class Members:
      enum DUXExposureFocusSwitchMode
      typedef NS_ENUM(NSInteger, DUXExposureFocusSwitchMode)
      Header:DUXExposureFocusSwitchWidget.h
      Description:

      The two modes that the switch can be in. Also the 2 values that can be sent by the notification.

      Enum Members:
      DUXExposureModeExposure mode.
      DUXFocusModeFocus mode.
      property
      property switchMode
      @property DUXExposureFocusSwitchMode switchMode
      Header:DUXExposureFocusSwitchWidget.h
      Description:

      The current state of the switch.

      See Also:

      DUXExposureFocusSwitchMode

      const DUXExposureFocusSwitchModeChangedNotification
      extern NSString * const DUXExposureFocusSwitchModeChangedNotification
      Header:DUXExposureFocusSwitchWidget.h
      Description:

      This is the name of the NSNotification that is posted everytime the switch changes state.

      const DUXExposureFocusSwitchModeKey
      extern NSString * const DUXExposureFocusSwitchModeKey
      Header:DUXExposureFocusSwitchWidget.h
      Description:

      Use this as the key for the dictionary that is sent with the notification to get the switch state.

      property
      property isSupported
      @property (readonly) BOOL isSupported
      Header:DUXExposureFocusSwitchWidget.h
      Description:

      YES if widget is supported, NO otherwise. It is not supported on Spark and Mavic Air, it will default to Exposure Mode.

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

      The index of the camera that the widget controls. Default value to 0.