Torch Switch Control
Defined in package com.scandit.datacapture.core.ui
- TorchSwitchControl
class TorchSwitchControl : Control
Added in version 8.6.0
Control that allows to toggle the torch on and off. The torch switch control hides itself automatically in case the active frame source doesn’t have a torch.
You can add this control to a view by calling DataCaptureView.addControl().
- torchOffImage
var torchOffImage: InputImage?
Added in version 8.6.0
Sets the image encoded as a base64 string to use for the control button when the torch is off.
- torchOffPressedImage
var torchOffPressedImage: InputImage?
Added in version 8.6.0
Sets the image encoded as a base64 string to use for the control button when the torch is off and the button is pressed.
- torchOnImage
var torchOnImage: InputImage?
Added in version 8.6.0
Sets the image encoded as a base64 string to use for the control button when the torch is on.
- torchOnPressedImage
var torchOnPressedImage: InputImage?
Added in version 8.6.0
Sets the image encoded as a base64 string to use for the control button when the torch is on and the button is pressed.
- accessibilityLabelWhenOff
var accessibilityLabelWhenOff: String?
Added in version 8.6.0
Accessibility label text used for the control button when the torch is off.
- accessibilityHintWhenOff
var accessibilityHintWhenOff: String?
Added in version 8.6.0
Accessibility hint text used for the control button when the torch is off.