[HMS Core] Unified scanning, continuous scanning code, flash off problem

 【Problem description 1】

How to scan codes continuously when using Default View Mode

【solution】

In the default scanning mode Default View, the function is integrated inside the SDK, and information such as the continuous scanning mode cannot be set.

You can use the Customized View Mode mode, which provides related APIs to set whether to scan codes continuously: through the setContinuouslyScan method, the default is true, and continuous scanning is enabled by default; set to false, non-continuous scanning, at this time The same code value will only be returned once.

cke_2069.png

For details, please refer to the following documents:

Customized View Mode

RemoteView

【Problem description 2】

Use the Customized View Mode to scan the code in a dark environment. After the code is scanned successfully, the flash is turned off. How to achieve continuous scanning without turning off the flash after successful code scanning.

【solution】

Customized View adjusts the interface in the SDK according to the document on the basis of continuous scanning codes. After the recognition is successful, the scanning interface and the flashlight will not be turned off. The shutdown may be due to local code configuration. Please check the local code, whether stop is actively called after the end of the code

cke_2627.png

Guess you like

Origin blog.csdn.net/Mayism123/article/details/131980095