Macro Mode Control
Defined in framework ScanditCaptureCore
- MacroModeControl
open class MacroModeControl : NSObject, Control
Added in version 6.17.0
Control that allows to switch between the available macro modes. The control hides itself automatically in case the active frame source doesn’t support macro mode.
You can add this control to a view by calling DataCaptureView.addControl().
Please note that this control has the same default placement anchor as CameraSwitchControl, so it will replace it when added to the view using the default settings. If you need to place multiple controls at the same anchor, consider using LinearControlGroup.
- init
init()
Added in version 6.17.0
Constructors a new macro mode control.
- init
convenience init(fromJSONString JSONString: String) throws
Added in version 6.17.0
Constructs a new macro mode control with the provided JSON serialization.
- autoImage
open var autoImage: UIImage { get, set }
Added in version 6.17.0
The button image displayed when the macro mode is auto.
- offImage
open var offImage: UIImage { get, set }
Added in version 6.17.0
The button image displayed when the macro mode is off.
- onImage
open var onImage: UIImage { get, set }
Added in version 6.17.0
The button image displayed when the macro mode is on.
- accessibilityLabelWhenAuto
open var accessibilityLabelWhenAuto: String? { get, set }
Added in version 6.17.0
Accessibility label text used for the control button when the macro mode is auto.
- accessibilityHintWhenAuto
open var accessibilityHintWhenAuto: String? { get, set }
Added in version 6.17.0
Accessibility hint text used for the control button when the macro mode is auto.
- accessibilityLabelWhenOff
open var accessibilityLabelWhenOff: String? { get, set }
Added in version 6.17.0
Accessibility label text used for the control button when the macro mode is off.
- accessibilityHintWhenOff
open var accessibilityHintWhenOff: String? { get, set }
Added in version 6.17.0
Accessibility hint text used for the control button when the macro mode is off.
- accessibilityLabelWhenOn
open var accessibilityLabelWhenOn: String? { get, set }
Added in version 6.17.0
Accessibility label text used for the control button when the macro mode is on.
- accessibilityHintWhenOn
open var accessibilityHintWhenOn: String? { get, set }
Added in version 6.17.0
Accessibility hint text used for the control button when the macro mode is on.
- update
open func update(fromJSONString JSONString: String) throws ->
VoidAdded in version 6.17.0
Updates the control according to a JSON serialization.
- defaultAutoImage
open class var defaultAutoImage: UIImage { get }
Added in version 6.17.0
The default image used for the control button when the macro mode is auto.