journeyapps / zxing-android-embedded

Barcode scanner library for Android, based on the ZXing decoder
https://journeyapps.com/
Apache License 2.0
5.74k stars 1.27k forks source link

cameraSettings.setAutoTorchEnabled(true) No callback to the app #730

Open manishb-azuga opened 1 year ago

manishb-azuga commented 1 year ago

Description of the problem:

When autoTorch flag is enabled there is no mechanism to provide callback to the app when torch state is changed.

Which library version are you using? E.g. 3.2.0. 4.3.0

Which phone/tablet are you using, and which Android version does it run? (e.g. Samsung Galaxy S5, Android 5.0) Samsung S22 Android 13

Does the same happen on other devices or an emulator? Yes

Can you reproduce the issue in the sample project included with the library? If not, can you provide your own sample project or sample code that produces this error? Yes

In the case of an error do you have a stack trace or adb logs? Not applicable