hms-scan-demo icon indicating copy to clipboard operation
hms-scan-demo copied to clipboard

使用RemoteView,是否可以返回多码,如何返回多码

Open marchlqq opened this issue 2 years ago • 0 comments

通过提供的 RemoteView,如何返回多码呢? 我验证多次, HmsScan[], 返回的 都是一个。

demo中,多码返回的,使用的相机扫码。

new RemoteView.Builder().setContext(this).setBoundingBox(rect).setFormat(HmsScan.ALL_SCAN_TYPE).build(); remoteView.setOnResultCallback(new OnResultCallback() { @Override public void onResult(HmsScan[] result) { //Check the result. if (result != null && result.length > 0 && result[0] != null && !TextUtils.isEmpty(result[0].getOriginalValue())) { } } });

marchlqq avatar Feb 08 '23 06:02 marchlqq