Zoom Switch Control
Defined in package com.scandit.datacapture.core.ui
Note
This API is currently unavailable on this platform.
- ZoomSwitchControl
class ZoomSwitchControl : Control
Added in version 8.6.0
Control that allows switching between configurable camera zoom levels. The available zoom levels are filtered based on the camera hardware capabilities.
You can add this control to a view by calling DataCaptureView.addControl().
- orientation
var orientation: ZoomSwitchOrientation
Added in version 8.6.0
The orientation of the zoom switch control. Defaults to ZoomSwitchOrientation.DEFAULT.
- isAlwaysExpanded
var isAlwaysExpanded:
BooleanAdded in version 8.6.0
When true, the control is always shown in its expanded state, displaying all zoom levels regardless of user interaction, and isExpanded is always true. When false, the control can be collapsed. Defaults to false.
- isExpanded
var isExpanded:
BooleanAdded in version 8.6.0
Whether the control is currently expanded, showing all zoom levels. Can be set programmatically to expand or collapse the control. When isAlwaysExpanded is true, this property always returns true and setting it has no effect.
- selectedZoomLevel
val selectedZoomLevel:
FloatAdded in version 8.6.0
The currently selected zoom level.
- accessibilityLabel
var accessibilityLabel: String
Added in version 8.6.0
The accessibility label. The placeholder
<level>is replaced with the zoom factor of each button. Defaults to"Zoom <level>".
- accessibilityHint
var accessibilityHint: String
Added in version 8.6.0
The accessibility hint. Defaults to
"Adjusts the camera zoom level".
- selectZoomLevel(zoomLevel)
fun selectZoomLevel(zoomLevel:
Float):FloatAdded in version 8.6.0
Selects the given zoom level, clamped to the range supported by the camera hardware. Returns the actual zoom level that was applied.