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, jsonData)#
static @NonNull ZoomSwitchControl fromJson(@NonNull Context context,
        @NonNull String jsonData)

Added in version 6.10.0

Constructs a new zoom switch control with the provided JSON serialization. See Serialization for details.

ZoomSwitchControl()#
ZoomSwitchControl(@NonNull Context context)

Added in version 6.10.0

Initializes a new ZoomSwitchControl.

zoomedOutImage#
@NonNull Bitmap getZoomedOutImage()
void setZoomedOutImage(@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()
void setZoomedOutPressedImage(@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()
void setZoomedInImage(@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()
void setZoomedInPressedImage(@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)#
void setZoomedOutImage(int resId)

Added in version 6.10.0

The button image resource displayed when the zoom level is set to 1x.

setZoomedOutPressedImage(resId)#
void setZoomedOutPressedImage(int resId)

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)#
void setZoomedInImage(int resId)

Added in version 6.10.0

The button image resource displayed when the zoom level is set to 2x.

setZoomedInPressedImage(resId)#
void setZoomedInPressedImage(int resId)

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.

defaultZoomedInPressedImage#
@NonNull Bitmap getDefaultZoomedInPressedImage()

Added in version 6.10.0

The default button image displayed when the zoom level is set to 2x and pressed.

updateFromJson(jsonData)#
void updateFromJson(@NonNull String jsonData)

Added in version 6.10.0

Updates the control according to a JSON serialization. See Serialization for details.