Zoom Switch Control
Defined in package com.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().
- fromJson(context, json)
static @NonNull ZoomSwitchControl fromJson(@NonNull Context context, @NonNull String json)
Added in version 6.10.0
Constructs a new zoom switch control with the provided JSON serialization.
- ZoomSwitchControl()
ZoomSwitchControl(@NonNull Context context)
Added in version 6.10.0
Initializes a new ZoomSwitchControl.
- zoomedOutImage
@NonNull Bitmap getZoomedOutImage()
voidsetZoomedOutImage(@NonNull Bitmap value)Added in version 6.10.0
The button image displayed when the zoom level is set to 1x.
- zoomedOutPressedImage
@NonNull Bitmap getZoomedOutPressedImage()
voidsetZoomedOutPressedImage(@NonNull Bitmap value)Added in version 6.10.0
The button image displayed when the zoom level is set to 1x and the button is pressed.
- zoomedInImage
@NonNull Bitmap getZoomedInImage()
voidsetZoomedInImage(@NonNull Bitmap value)Added in version 6.10.0
The button image displayed when the zoom level is set to 2x.
- zoomedInPressedImage
@NonNull Bitmap getZoomedInPressedImage()
voidsetZoomedInPressedImage(@NonNull Bitmap value)Added in version 6.10.0
The button image displayed when the zoom level is set to 2x and pressed.
- setZoomedOutImage(resId)
voidsetZoomedOutImage(intresId)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 1x.
- setZoomedOutPressedImage(resId)
voidsetZoomedOutPressedImage(intresId)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(resId)
voidsetZoomedInImage(intresId)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 2x.
- setZoomedInPressedImage(resId)
voidsetZoomedInPressedImage(intresId)Added in version 6.10.0
The button image resource displayed when the zoom level is set to 2x and pressed.
- defaultZoomedOutImage
@NonNull Bitmap getDefaultZoomedOutImage()
Added in version 6.10.0
The default button image displayed when the zoom level is set to 1x.
- defaultZoomedOutPressedImage
@NonNull Bitmap getDefaultZoomedOutPressedImage()
Added in version 6.10.0
The default button image displayed when the zoom level is set to 1x and the button is pressed.
- defaultZoomedInImage
@NonNull Bitmap getDefaultZoomedInImage()
Added in version 6.10.0
The default button image displayed when the zoom level is set to 2x.