Skip to main content

Interface: Code

A scanned code.

Properties

corners

Optional corners: Point[]

The location of each corner relative to the Camera Preview (in dp).

Defined in

CodeScanner.ts:58


frame

Optional frame: Object

The location of the code relative to the Camera Preview (in dp).

Type declaration

NameType
heightnumber
widthnumber
xnumber
ynumber

Defined in

CodeScanner.ts:49


type

type: "unknown" | CodeType

The type of the code that was scanned.

Defined in

CodeScanner.ts:41


value

Optional value: string

The string value, or null if it cannot be decoded.

Defined in

CodeScanner.ts:45