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​

types/CodeScanner.ts:60


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​

types/CodeScanner.ts:51


type​

• type: CodeType | "unknown"

The type of the code that was scanned.

Defined in​

types/CodeScanner.ts:43


value​

• Optional value: string

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

Defined in​

types/CodeScanner.ts:47