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)
fun ZoomSwitchControl.fromJson(context: Context,
        json: String): ZoomSwitchControl

Added in version 6.10.0

Constructs a new zoom switch control with the provided JSON serialization.

ZoomSwitchControl()
ZoomSwitchControl(context: Context)

Added in version 6.10.0

Initializes a new ZoomSwitchControl.

zoomedOutImage
var zoomedOutImage: Bitmap

Added in version 6.10.0

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

zoomedOutPressedImage
var zoomedOutPressedImage: Bitmap

Added in version 6.10.0

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

zoomedInImage
var zoomedInImage: Bitmap

Added in version 6.10.0

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

zoomedInPressedImage
var zoomedInPressedImage: Bitmap

Added in version 6.10.0

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

setZoomedOutImage(resId)
fun setZoomedOutImage(resId: Int)

Added in version 6.10.0

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

setZoomedOutPressedImage(resId)
fun setZoomedOutPressedImage(resId: Int)

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)
fun setZoomedInImage(resId: Int)

Added in version 6.10.0

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

setZoomedInPressedImage(resId)
fun setZoomedInPressedImage(resId: Int)

Added in version 6.10.0

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

defaultZoomedOutImage
val defaultZoomedOutImage: Bitmap

Added in version 6.10.0

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

defaultZoomedOutPressedImage
val defaultZoomedOutPressedImage: Bitmap

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
val defaultZoomedInImage: Bitmap

Added in version 6.10.0

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

defaultZoomedInPressedImage
val defaultZoomedInPressedImage: Bitmap

Added in version 6.10.0

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

contentDescriptionWhenZoomedOut
var contentDescriptionWhenZoomedOut: String

Added in version 7.4.1

Content description text used for the control button when zoomed out (Android only).

contentDescriptionWhenZoomedIn
var contentDescriptionWhenZoomedIn: String

Added in version 7.4.1

Content description text used for the control button when zoomed in (Android only).

updateFromJson(json)
fun updateFromJson(json: String)

Added in version 6.10.0

Updates the control according to a JSON serialization.