HMS-Core/hms-scan-demo

Default View Mode 如何才能使用闪光灯(手电筒),场景:用于夜间扫码

Opened this issue · 3 comments

Android 系统 Default View Mode 如何才能使用闪光灯(手电筒),场景:用于夜间扫码

求大佬抽空看一下

如何才能使 闪光灯(手电筒)的打开/关闭 按钮一直显示在页面上?

Hi,

It is not possible to make any changes to the Default View. It is used based on the "View" model. "Customized View" is already available to make changes. In order for Flash Light to be visible all the time, it will always be visible when you use the code below by removing it from the "if" structure.

Screenshot

flushBtn.setVisibility(View.VISIBLE);

You can make the flash button always visible by changing the location of this line in the DefinedActivity.java class. I hope it was useful.