Skip to main content

Interface: CodeScanner

A scanner for detecting codes in a Camera Stream.

Properties​

codeTypes​

• codeTypes: CodeType[]

The types of codes to configure the code scanner for.

Defined in​

CodeScanner.ts:48


onCodeScanned​

• onCodeScanned: (codes: Code[]) => void

Type declaration​

â–¸ (codes): void

A callback to call whenever the scanned codes change.

Parameters​
NameType
codesCode[]
Returns​

void

Defined in​

CodeScanner.ts:52


regionOfInterest​

• Optional regionOfInterest: Object

Crops the scanner's view area to the specific region of interest.

Type declaration​

NameType
heightnumber
widthnumber
xnumber
ynumber

Defined in​

CodeScanner.ts:56