Zoom Switch Control
Defined in library scandit_datacapture_core_ui
- ZoomSwitchControl
class ZoomSwitchControl : Control
Added in version 6.10.0
Control that allows to switch between two camera zoom levels defined by CameraSettings.zoomFactor and CameraSettings.zoomGestureZoomFactor.
You can add this control to a view by calling DataCaptureView.addControl().
- ZoomSwitchControl()
ZoomSwitchControl()Added in version 8.3.0
Initializes a new ZoomSwitchControl.
- zoomedOutImage
Image? get zoomedOutImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x.
- zoomedOutPressedImage
Image? get zoomedOutPressedImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 1x and the button is pressed.
- zoomedInImage
Image? get zoomedInImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x.
- zoomedInPressedImage
Image? get zoomedInPressedImage
Added in version 6.10.0
The button image displayed when the zoom level is set to 2x and pressed.
- setZoomedOutImage(image)
Future<
void> setZoomedOutImage(Image? image)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 1x.
- setZoomedOutPressedImage(image)
Future<
void> setZoomedOutPressedImage(Image? image)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 1x and the button is pressed.
- setZoomedInImage(image)
Future<
void> setZoomedInImage(Image? image)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 2x.
- setZoomedInPressedImage(image)
Future<
void> setZoomedInPressedImage(Image? image)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 2x and pressed.
- contentDescriptionWhenZoomedOut
String? contentDescriptionWhenZoomedOut
Added in version 8.3.0
Content description text used for the control button when zoomed out (Android only).
Note
This property is only used on Android. For iOS, use accessibilityLabelWhenZoomedOut instead.
- contentDescriptionWhenZoomedIn
String? contentDescriptionWhenZoomedIn
Added in version 8.3.0
Content description text used for the control button when zoomed in (Android only).
Note
This property is only used on Android. For iOS, use accessibilityLabelWhenZoomedIn instead.
- accessibilityLabelWhenZoomedOut
String? accessibilityLabelWhenZoomedOut
Added in version 8.3.0
Accessibility label text used for the control button when zoomed out (iOS only).
Note
This property is only used on iOS. For Android, use contentDescriptionWhenZoomedOut instead.
- accessibilityLabelWhenZoomedIn
String? accessibilityLabelWhenZoomedIn
Added in version 8.3.0
Accessibility label text used for the control button when zoomed in (iOS only).
Note
This property is only used on iOS. For Android, use contentDescriptionWhenZoomedIn instead.