3.0.0 • Published 4 months ago

capacitor-plugin-dynamsoft-barcode-reader v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

capacitor-plugin-dynamsoft-barcode-reader

version

A capacitor plugin for Dynamsoft Barcode Reader.

Install

npm install capacitor-plugin-dynamsoft-barcode-reader
npx cap sync

Supported Platforms

  • Android
  • iOS
  • Web

Capacitor Versions

For Capacitor 7, use 3.x.

For Capacitor 6, use 2.x.

For Capacitor <= 5, use 1.x.

SDK Versions Used for Different Platforms

ProductAndroidiOSWeb
Dynamsoft Barcode Reader10.4.2010.4.2010.4.20

Supported Barcode Symbologies

  • Code 11
  • Code 39
  • Code 93
  • Code 128
  • Codabar
  • EAN-2
  • EAN-5
  • EAN-8
  • EAN-13
  • UPC-A
  • UPC-E
  • UPC-2
  • UPC-5
  • Interleaved 2 of 5 (ITF)
  • Industrial 2 of 5 (Code 2 of 5 Industry, Standard 2 of 5, Code 2 of 5)
  • ITF-14
  • QRCode
  • DataMatrix
  • PDF417
  • GS1 DataBar
  • Maxicode
  • Micro PDF417
  • Micro QR
  • PatchCode
  • GS1 Composite
  • Postal Code
  • Dot Code
  • Pharmacode

Demos

API

initLicense(...)

initLicense(options: { license: string; }) => Promise<{ success?: boolean; message?: string; }>
ParamType
options{ license: string; }

Returns: Promise<{ success?: boolean; message?: string; }>


initialize()

initialize() => Promise<{ success?: boolean; message?: string; }>

Returns: Promise<{ success?: boolean; message?: string; }>


initRuntimeSettingsFromString(...)

initRuntimeSettingsFromString(options: { template: string; }) => Promise<void>
ParamType
options{ template: string; }

decode(...)

decode(options: { source: string | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement; template?: string; }) => Promise<{ results: TextResult[]; }>

source: Android and iOS only support base64 string. path: for Android and iOS. template: pass a template name to specify the template

ParamType
options{ source: any; template?: string; }

Returns: Promise<{ results: TextResult[]; }>


decodeBitmap(...)

decodeBitmap(options: { className?: string; methodName?: string; template?: string; }) => Promise<{ results: TextResult[]; }>

Android and iOS only method which directly read camera frames from capacitor-plugin-camera

ParamType
options{ className?: string; methodName?: string; template?: string; }

Returns: Promise<{ results: TextResult[]; }>


setEngineResourcePaths(...)

setEngineResourcePaths(options: { paths: any; }) => Promise<void>

Web only method to set the engine resource path

ParamType
options{ paths: any; }

Interfaces

TextResult

PropType
barcodeTextstring
barcodeFormatstring
barcodeBytesBase64string
x1number
y1number
x2number
y2number
x3number
y3number
x4number
y4number
3.0.0

4 months ago

1.6.1

4 months ago

1.6.0

4 months ago

2.1.1

4 months ago

2.1.0

8 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.4.4

2 years ago

1.4.3

2 years ago

1.4.2

2 years ago

1.5.0

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.20

2 years ago

1.3.11

2 years ago

1.3.7

2 years ago

1.3.10

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.3.4

3 years ago

1.2.0

3 years ago

1.0.0

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.3.3

3 years ago

1.2.4

3 years ago

1.3.2

3 years ago

1.2.3

3 years ago

1.3.1

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

0.6.3

3 years ago

0.6.2

3 years ago

0.6.4

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.4

3 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago