我使用ZXing程序进行条码扫描,扫描效果很好,但程序中的闪光灯不工作,有什么建议对我进一步进行条码扫描有帮助。
提前谢谢。
发布于 2019-01-18 02:05:41
您可以尝试执行以下操作:
CancellationTokenSource cancellationTokenSource = new CancellationTokenSource();
TimeSpan timespan = new TimeSpan(0, 0, 0, 0, 0);
Device.StartTimer(timespan, () =>
{
if (cancellationTokenSource.IsCancellationRequested)
{
return false;
}
scanner.Torch(true);
return true;
});
scanner.Scan(Options);https://stackoverflow.com/questions/7089000
复制相似问题