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:59


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:50


type​

• type: "unknown" | CodeType

The type of the code that was scanned.

Defined in​

CodeScanner.ts:42


value​

• Optional value: string

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

Defined in​

CodeScanner.ts:46