Zoom Switch Control

Defined under the namespace 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().

constructor()
constructor()

Added in version 8.3.0

Initializes a new ZoomSwitchControl.

zoomedOutImage
zoomedOutImage: string | null

Added in version 6.10.0

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

zoomedOutPressedImage
zoomedOutPressedImage: string | null

Added in version 6.10.0

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

zoomedInImage
zoomedInImage: string | null

Added in version 6.10.0

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

zoomedInPressedImage
zoomedInPressedImage: string | null

Added in version 6.10.0

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

setZoomedOutImage(resource)
setZoomedOutImage(resource: string): void

Added in version 6.23.0

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

setZoomedOutPressedImage(resource)
setZoomedOutPressedImage(resource: string): void

Added in version 6.23.0

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

setZoomedInImage(resource)
setZoomedInImage(resource: string): void

Added in version 6.23.0

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

setZoomedInPressedImage(resource)
setZoomedInPressedImage(resource: string): void

Added in version 6.23.0

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

contentDescriptionWhenZoomedOut
contentDescriptionWhenZoomedOut: string | null

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
contentDescriptionWhenZoomedIn: string | null

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
accessibilityLabelWhenZoomedOut: string | null

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
accessibilityLabelWhenZoomedIn: string | null

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.

accessibilityHintWhenZoomedOut
accessibilityHintWhenZoomedOut: string | null

Added in version 8.3.0

Accessibility hint text used for the control button when zoomed out.

Note

This property is only used on iOS. Android does not have an equivalent accessibility hint concept.

accessibilityHintWhenZoomedIn
accessibilityHintWhenZoomedIn: string | null

Added in version 8.3.0

Accessibility hint text used for the control button when zoomed in.

Note

This property is only used on iOS. Android does not have an equivalent accessibility hint concept.