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.