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​
types/CodeScanner.ts:69
onCodeScanned​
• onCodeScanned: (codes: Code[], frame: CodeScannerFrame) => void
A callback to call whenever the scanned codes change.
Type declaration​
â–¸ (codes, frame): void
Parameters​
| Name | Type | Description | 
|---|---|---|
| codes | Code[] | The scanned codes, or an empty array if none. | 
| frame | CodeScannerFrame | The full area that is used for scanning. Code bounds and corners are relative to this frame. | 
Returns​
void
Defined in​
types/CodeScanner.ts:75
regionOfInterest​
• Optional regionOfInterest: Object
Crops the scanner's view area to the specific region of interest.
Platform
iOS
Type declaration​
| Name | Type | 
|---|---|
| height | number | 
| width | number | 
| x | number | 
| y | number | 
Defined in​
types/CodeScanner.ts:81