0.1.0 • Published 10 months ago

@kduma-autoid/capacitor-sunmi-camera-scanner v0.1.0

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

@kduma-autoid/capacitor-sunmi-camera-scanner

Capacitor plugin for interaction with Sunmi Camera-based barcode scanning library

Install

npm install @kduma-autoid/capacitor-sunmi-camera-scanner
npx cap sync

API

scan(...)

scan(options?: ScanParams | undefined) => Promise<{ scans: { type: string; value: string; }[]; }>
ParamType
optionsScanParams

Returns: Promise<{ scans: { type: string; value: string; }[]; }>


Interfaces

ScanParams

PropTypeDescriptionDefault
play_soundbooleanSound prompt after scan completestrue
play_vibratebooleanVibrate when scan completes. At present, M1 hardware supports this configuration for vibration, while V1 does not support.false
show_settingbooleanWhether to display the Settings button in the upper right cornerfalse
show_album_selectorbooleanWhether to display the button "select picture from album"false
show_flashlightbooleanWhether to display the flashlightfalse
recognize_multiple_codesbooleanRecognize multiple QR codes in the imagefalse
recognize_inverse_codesbooleanAllow to read the reverse color QR codefalse
scan_modebooleanWhether cycle modefalse
symbologiesSymbologiesSymbologies configuration

Symbologies

PropTypeDescriptionDefault
ean_8booleanAllow to read the EAN-8 barcodefalse
upc_ebooleanAllow to read the UPC-E barcodefalse
isbn_10booleanAllow to read the ISBN-10 (from EAN-13) barcodefalse
code_11booleanAllow to read the CODE-11 barcodefalse
upc_abooleanAllow to read the UPC-A barcodefalse
ean_13booleanAllow to read the AN-13 barcodefalse
isbn_13booleanAllow to read the ISBN-13 (from EAN-13) barcodefalse
interleaved_2_of_5booleanAllow to read the Interleaved 2 of 5 barcodefalse
code_128booleanAllow to read the ECode 128 barcodefalse
codabarbooleanAllow to read the Codabar barcodefalse
code_39booleanAllow to read the Code 39 barcodefalse
code_93booleanAllow to read the Code 93 barcodefalse
databarbooleanAllow to read the DataBar (RSS-14) barcodefalse
databar_expbooleanAllow to read the DataBar Expanded barcodefalse
micro_pdf417booleanAllow to read the Micro PDF417 barcodefalse
microqrbooleanAllow to read the Micro QR Code barcodefalse
qr_codebooleanAllow to read the QR codefalse
pdf417booleanAllow to read the PDF417 barcodefalse
data_matrixbooleanAllow to read the DataMatrix codefalse
aztecbooleanAllow to read the AZTEC codefalse
hanxinbooleanAllow to read the Hanxin codefalse
0.1.0

10 months ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago