Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
marchlqq opened this issue Feb 8, 2023 · 0 comments
Open

Comments

@marchlqq
Copy link

marchlqq commented Feb 8, 2023

通过提供的 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())) {
}
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant