@interface DUXExposureFocusSwitchWidget : DUXWidget |
| Header: | DUXExposureFocusSwitchWidget.h |
| Inherits From: | DUXWidget |
Action widget that allows switching between between Exposure and Focus controls when touching. Not supported on Spark.
Preferred Aspect Ratio: 35:35
typedef NS_ENUM(NSInteger, DUXExposureFocusSwitchMode) |
| Header: | DUXExposureFocusSwitchWidget.h |
The two modes that the switch can be in. Also the 2 values that can be sent by the notification.
| DUXExposureMode | Exposure mode. |
| DUXFocusMode | Focus mode. |
@property DUXExposureFocusSwitchMode switchMode |
| Header: | DUXExposureFocusSwitchWidget.h |
The current state of the switch.
extern NSString * const DUXExposureFocusSwitchModeChangedNotification |
| Header: | DUXExposureFocusSwitchWidget.h |
This is the name of the NSNotification that is posted everytime the switch changes state.
extern NSString * const DUXExposureFocusSwitchModeKey |
| Header: | DUXExposureFocusSwitchWidget.h |
Use this as the key for the dictionary that is sent with the notification to get the switch state.
@property (readonly) BOOL isSupported |
| Header: | DUXExposureFocusSwitchWidget.h |
YES if widget is supported, NO otherwise. It is not supported on Spark and Mavic Air, it will default to Exposure Mode.
@property (nonatomic) NSUInteger preferredCameraIndex |
| Header: | DUXExposureFocusSwitchWidget.h |
The index of the camera that the widget controls. Default value to 0.