# lime-scan - 基于华为Scan Sdk(非PLUS)的扫码插件,仅支持默认模式,目前只支持安卓 - 文档:[传送门](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/android-integrating-sdk-0000001050042006) ## 安装 导入插件后,自定义基座再使用。 ### 基础使用 ``` ScanType类型: qrCode - 二维码 barCode - 一维码 datamatrix - Data Matrix 码 pdf417 - PDF417 条码 ``` ``` import {hmScanCode, ScanOptions, ScanResult} from '@/uni_modules/lime-scan'; hmScanCode({ scanType: ['qrCode'], success: (res: ScanResult) => { console.log(res); }, } as ScanOptions); ```