
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
capacitor-plugin-dynamsoft-barcode-reader
Advanced tools
A capacitor plugin for Dynamsoft Barcode Reader
A capacitor plugin for Dynamsoft Barcode Reader and Dynamsoft Camera Enhancer.
npm install capacitor-plugin-dynamsoft-barcode-reader
npx cap sync
Or install from a local folder
npm install <path-to-the-project>
npx cap sync
initialize(...)
initRuntimeSettingsWithString(...)
toggleTorch(...)
startScan()
stopScan()
resumeScan()
pauseScan()
stopScan()
readImage(...)
requestCameraPermission()
getAllCameras()
getSelectedCamera()
selectCamera(...)
getResolution()
setResolution(...)
setScanRegion(...)
setZoom(...)
setFocus(...)
setLayout(...)
destroy()
setEngineResourcePath(...)
setDefaultUIElementURL(...)
addListener(...)
addListener(...)
removeAllListeners()
initialize(options?: Options | undefined) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | Options |
Returns: Promise<{ success?: boolean; message?: string; }>
initRuntimeSettingsWithString(options: { template: string; }) => Promise<void>
Param | Type |
---|---|
options | { template: string; } |
toggleTorch(options: { on: boolean; }) => Promise<void>
Param | Type |
---|---|
options | { on: boolean; } |
startScan() => Promise<void>
stopScan() => Promise<void>
resumeScan() => Promise<void>
pauseScan() => Promise<void>
stopScan() => Promise<void>
readImage(options: { base64: string; }) => Promise<{ results: TextResult[]; }>
Param | Type |
---|---|
options | { base64: string; } |
Returns: Promise<{ results: TextResult[]; }>
requestCameraPermission() => Promise<void>
getAllCameras() => Promise<{ cameras?: string[]; message?: string; }>
Returns: Promise<{ cameras?: string[]; message?: string; }>
getSelectedCamera() => Promise<{ selectedCamera?: string; message?: string; }>
Returns: Promise<{ selectedCamera?: string; message?: string; }>
selectCamera(options: { cameraID: string; }) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | { cameraID: string; } |
Returns: Promise<{ success?: boolean; message?: string; }>
getResolution() => Promise<{ resolution?: string; message?: string; }>
Returns: Promise<{ resolution?: string; message?: string; }>
setResolution(options: { resolution: number; }) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | { resolution: number; } |
Returns: Promise<{ success?: boolean; message?: string; }>
setScanRegion(options: ScanRegion) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | ScanRegion |
Returns: Promise<{ success?: boolean; message?: string; }>
setZoom(options: { factor: number; }) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | { factor: number; } |
Returns: Promise<{ success?: boolean; message?: string; }>
setFocus(options: { x: number; y: number; }) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | { x: number; y: number; } |
Returns: Promise<{ success?: boolean; message?: string; }>
setLayout(options: { top: string; left: string; width: string; height: string; }) => Promise<{ success?: boolean; message?: string; }>
Param | Type |
---|---|
options | { top: string; left: string; width: string; height: string; } |
Returns: Promise<{ success?: boolean; message?: string; }>
destroy() => Promise<void>
setEngineResourcePath(path: string) => Promise<void>
Param | Type |
---|---|
path | string |
setDefaultUIElementURL(url: string) => Promise<void>
Param | Type |
---|---|
url | string |
addListener(eventName: 'onFrameRead', listenerFunc: onFrameReadListener) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName | "onFrameRead" |
listenerFunc | (result: ScanResult) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
addListener(eventName: 'onPlayed', listenerFunc: onPlayedListener) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName | "onPlayed" |
listenerFunc | (result: { resolution: string; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
removeAllListeners() => Promise<void>
Prop | Type |
---|---|
license | string |
dceLicense | string |
Prop | Type |
---|---|
barcodeText | string |
barcodeFormat | string |
barcodeBytesBase64 | string |
x1 | number |
y1 | number |
x2 | number |
y2 | number |
x3 | number |
y3 | number |
x4 | number |
y4 | number |
measuredByPercentage: 0 in pixel, 1 in percent
Prop | Type |
---|---|
left | number |
top | number |
right | number |
bottom | number |
measuredByPercentage | number |
Prop | Type |
---|---|
remove | () => Promise<void> |
For versions >= 1.3.1, Dynamsoft Barcode Reader 9 is used.
For version 1.3.0, Dynamsoft Barcode Reader Mobile 9 and Dynamsoft Barcode Reader JavaScript 8.8.7 are used.
For versions < 1.3.0, Dynamsoft Barcode Reader 8 is used.
FAQs
A capacitor plugin for Dynamsoft Barcode Reader
The npm package capacitor-plugin-dynamsoft-barcode-reader receives a total of 17 weekly downloads. As such, capacitor-plugin-dynamsoft-barcode-reader popularity was classified as not popular.
We found that capacitor-plugin-dynamsoft-barcode-reader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.