4.0.13 • Published 10 months ago

@captureid/capacitor-cidscan v4.0.13

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

@captureid/capacitor-cidscan

Camera Scanning API

Install

npm install @captureid/capacitorng-cidscan
npx cap sync

API

activateLicense(...)

activateLicense(options: { productkey: string; }) => Promise<{ result: string; }>
ParamType
options{ productkey: string; }

Returns: Promise<{ result: string; }>


addListener(string, ...)

addListener(eventName: string, listenerFunc: (data: CIDScanEvent) => void) => PluginListenerHandle
ParamType
eventNamestring
listenerFunc(data: CIDScanEvent) => void

Returns: PluginListenerHandle


arHideWebOverlay()

arHideWebOverlay() => void

arShowWebOverlay(...)

arShowWebOverlay(options: { baseUrl: string; content: string; }) => void
ParamType
options{ baseUrl: string; content: string; }

arShowWebOverlayFromURL(...)

arShowWebOverlayFromURL(options: { url: string; }) => void
ParamType
options{ url: string; }

closeCIDScannerLib()

closeCIDScannerLib() => Promise<void>

enableAllSymbologies(...)

enableAllSymbologies(options: { enable: boolean; }) => void
ParamType
options{ enable: boolean; }

enableSymbology(...)

enableSymbology(options: { symbology: Symbology; enable: boolean; }) => void
ParamType
options{ symbology: Symbology; enable: boolean; }

initCIDScannerLib()

initCIDScannerLib() => Promise<void>

initScanner(...)

initScanner(options: { config: ScannerConfig; }) => Promise<void>
ParamType
options{ config: ScannerConfig; }

removeAllListeners()

removeAllListeners() => void

setAimSize(...)

setAimSize(options: { width: number; height: number; }) => void
ParamType
options{ width: number; height: number; }

setAimStyle(...)

setAimStyle(options: { style: AimStyle; color: Color; }) => void
ParamType
options{ style: AimStyle; color: Color; }

setConfiguration(...)

setConfiguration(options: { config: ScannerConfig; }) => Promise<void>
ParamType
options{ config: ScannerConfig; }

setDecoderToleranceLevel(...)

setDecoderToleranceLevel(options: { toleranceLevel: number; }) => void
ParamType
options{ toleranceLevel: number; }

setTorch(...)

setTorch(options: { enable: boolean; }) => void
ParamType
options{ enable: boolean; }

showAim(...)

showAim(options: { aim: Aim; }) => void
ParamType
options{ aim: Aim; }

showSettings(...)

showSettings(options: { config: ScannerConfig; }) => void
ParamType
options{ config: ScannerConfig; }

showUI(...)

showUI(options: { show: boolean; }) => void
ParamType
options{ show: boolean; }

startDecode()

startDecode() => void

startPreview()

startPreview() => Promise<DecoderStatusType>

Returns: Promise<DecoderStatusType>


startScanner()

startScanner() => Promise<DecoderStatusType>

Returns: Promise<DecoderStatusType>


startSplitOverlay(...)

startSplitOverlay(options: { height: number; paddingTop: number; }) => void
ParamType
options{ height: number; paddingTop: number; }

startSplitScreen(...)

startSplitScreen(options: { height: number; }) => void
ParamType
options{ height: number; }

stopDecode()

stopDecode() => void

stopPreview()

stopPreview() => void

Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

CIDScanEvent

PropType
typeScannerEventType | LicenseEventType | DecoderEventType
statusDecoderStatusType | ScannerStatusType | LicenseStatusType
messagestring
errornumber
sourcestring
decodesBarcodeData[]
actionScannerActionType

BarcodeData

PropType
barcodestring
typestring

Symbology

PropType
namestring
categorySymbologiesCategory
enabledboolean

ScannerConfig

Color

PropType
rednumber
greennumber
bluenumber
alphanumber

Aim

PropType
enabledboolean
colorColor
styleAimStyle

Enums

ScannerEventType

MembersValue
SUCCESS0
NOTIFY1
FAILED2

LicenseEventType

MembersValue
NONE0
ACTIVATION1
STATUS2

DecoderEventType

MembersValue
NONE0
STATUS1
DATA2

ScannerStatusType

MembersValue
OK0
UNKNOWN1

LicenseStatusType

MembersValue
VALID0
INVALID1
FAILED2

DecoderStatusType

MembersValue
OK0
OK_READY_TO_DECODE1
OK_STILL_DECODING2
NOT_CONNECTED4
TRYING_TO_CONNECT5
CONNECTED6
BATTERY_NOT_OK9
ERROR11

ScannerActionType

MembersValue
NONE0
LICENSE_ACTIVATION1
DECODED2
DECODED_MULTIPLE3
DECODED_COORDINATES4
SCANNER_INITIALIZED5
SCANNER_STARTED6
SETTINGS_CHANGED7
SCAN_BUTTON_CLICKED8

SymbologiesCategory

MembersValue
CATEGORY_1D1
CATEGORY_2D2
CATEGORY_POSTAL3

AimStyle

MembersValue
NONE0
DOT1
CROSS2
EXTCROSS3
CORNERS4
RECTANGLE5
SQUARE6
BAR7
4.0.5

10 months ago

4.0.4

10 months ago

4.0.7

10 months ago

4.0.6

10 months ago

4.0.1

11 months ago

4.0.3

11 months ago

4.0.2

11 months ago

4.0.9

10 months ago

4.0.8

10 months ago

4.0.10

10 months ago

4.0.12

10 months ago

4.0.11

10 months ago

4.0.13

10 months ago

2.0.2

11 months ago

2.0.1

11 months ago

1.0.40

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.30

2 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

0.0.89

3 years ago

0.0.88

3 years ago

0.0.87

3 years ago

0.0.86

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

0.0.84

3 years ago

0.0.85

3 years ago

0.0.83

3 years ago

0.0.82

3 years ago

0.0.81

3 years ago

1.0.13

3 years ago

0.0.80

3 years ago

0.0.77

3 years ago

0.0.78

3 years ago

0.0.79

3 years ago

0.0.73

3 years ago

0.0.74

3 years ago

0.0.75

3 years ago

0.0.76

3 years ago

0.0.72

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

0.0.70

3 years ago

0.0.71

3 years ago

0.0.66

3 years ago

0.0.67

3 years ago

0.0.68

3 years ago

0.0.69

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

0.0.65

3 years ago

1.0.3

3 years ago

0.0.62

3 years ago

0.0.63

3 years ago

0.0.64

3 years ago

0.0.60

3 years ago

0.0.61

3 years ago

0.0.52

3 years ago

0.0.53

3 years ago

0.0.54

3 years ago

0.0.55

3 years ago

0.0.56

3 years ago

0.0.57

3 years ago

0.0.58

3 years ago

0.0.59

3 years ago

0.0.51

3 years ago

0.0.50

3 years ago

0.0.49

3 years ago

0.0.48

3 years ago

0.0.47

3 years ago

0.0.46

3 years ago

0.0.45

3 years ago

0.0.44

3 years ago

0.0.40

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.43

3 years ago

0.0.39

3 years ago