This commit is contained in:
iqudoo
2026-04-30 15:35:30 +08:00
parent 0d1698439e
commit 51738b1936
9 changed files with 102 additions and 12 deletions

View File

@@ -344,4 +344,18 @@ export function startScan() {
_scan_resolve = null;
__closed();
});
}
export function scanImage() {
if (!isSupportImageScan()) {
console.log("not support image scanner");
return;
}
startScanForImage().then(resp => {
if (resp && resp.result) {
__result(resp.result);
}
}).catch(err => {
console.log("scan image error", err);
});
}