0.0.1 • Published 3 years ago
@captureid/capacitor-cidcamera
Camera Plugin to take photos  and capture videos
Install
npm install @captureid/capacitor-cidcamera
npx cap sync
API
addListener(string, ...)
addListener(eventName: string, listenerFunc: (data: CIDSMBEvent) => void) => PluginListenerHandle
| Param | Type | 
|---|
| eventName | string | 
| listenerFunc | (data: CIDSMBEvent) => void | 
Returns: PluginListenerHandle
removeAllListeners()
removeAllListeners() => void
Interfaces
PluginListenerHandle
| Prop | Type | 
|---|
| remove | () => Promise<void> | 
CIDSMBEvent
| Prop | Type | 
|---|
| type | CIDSMBEventType | 
| status | CIDSMBStatusType | 
| message | string | 
| error | number | 
| source | string | 
| action | CIDSMBActionType | 
Enums
CIDSMBEventType
| Members | Value | 
|---|
| SUCCESS | 0 | 
| NOTIFY | 1 | 
| FAILED | 2 | 
CIDSMBStatusType
CIDSMBActionType
| Members | Value | 
|---|
| NONE | 0 | 
| LICENSE_ACTIVATION | 1 | 
| DECODED | 2 | 
| DECODED_MULTIPLE | 3 | 
| DECODED_COORDINATES | 4 | 
| SCANNER_INITIALIZED | 5 | 
| SCANNER_STARTED | 6 | 
| SETTINGS_CHANGED | 7 | 
| SCAN_BUTTON_CLICKED | 8 |