1.0.8 • Published 3 years ago
capacitor-barcode-scanner-fragment v1.0.8
capacitor-barcode-scanner-fragment
This plugin appends Android fragment to the Main Activity of CapacitorJs app and allow barcode scanning functionality.
Install
npm install capacitor-barcode-scanner-fragment
npx cap syncAPI
toggleScanner()
toggleScanner() => Promise<void>startScanner()
startScanner() => Promise<void>stopScanner()
stopScanner() => Promise<void>isScanning()
isScanning() => Promise<{ isScanning: boolean; }>Returns: Promise<{ isScanning: boolean; }>
setIsTorchEnabled(...)
setIsTorchEnabled(args: { enabled: boolean; }) => Promise<{ isEnabled: boolean; }>| Param | Type |
|---|---|
args | { enabled: boolean; } |
Returns: Promise<{ isEnabled: boolean; }>