0.0.4 • Published 3 years ago

capacitor-image-barcode-reader v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

capacitor-image-barcode-reader

Read all types of bar code from a image

Install

npm install capacitor-image-barcode-reader
npx cap sync

API

readImage()

readImage() => Promise<{ content: string; }>

Returns: Promise<{ content: string; }>


Example

import { ImageBarcodeReader } from "capacitor-image-barcode-reader";

  async readImage() {
    await ImageBarcodeReader.readImage().then(data => {
      console.log(data.content);
    }).catch(err => {
      console.log(err.message);      
    });
  }