Capacitor Plugin for Code Scanner
npm install @rdlabo/capacitor-codescanner
npx cap sync
present(scannerOption: ScannerOption) => Promise<void>
Param | Type |
---|---|
scannerOption |
ScannerOption |
addListener(eventName: 'CodeScannerCatchEvent', listenerFunc: (event: { code: string; }) => void) => Promise<PluginListenerHandle>
Param | Type |
---|---|
eventName |
"CodeScannerCatchEvent" |
listenerFunc |
(event: { code: string; }) => void |
Returns: Promise<PluginListenerHandle>
Prop | Type |
---|---|
detectionX |
number |
detectionY |
number |
detectionWidth |
number |
detectionHeight |
number |
metadataObjectTypes |
Record<"aztec" | "code128" | "code39" | "code39Mod43" | "code93" | "dataMatrix" | "ean13" | "ean8" | "face" | "interleaved2of5" | "itf14" | "pdf417" | "qr" | "upce" | "catBody" | "dogBody" | "humanBody" | "salientObject", []> |
Prop | Type |
---|---|
remove |
() => Promise<void> |