capacitor-barcode-scanner-fragment
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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 sync

API

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; }>


/capacitor-barcode-scanner-fragment/

    Package Sidebar

    Install

    npm i capacitor-barcode-scanner-fragment

    Weekly Downloads

    0

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    37.6 kB

    Total Files

    34

    Last publish

    Collaborators

    • rvssvl