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


frame?

optional frame: object

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

height

height: number

width

width: number

x

x: number

y

y: number

Defined in

types/CodeScanner.ts:54


type

type: CodeType | "unknown"

The type of the code that was scanned.

Defined in

types/CodeScanner.ts:46


value?

optional value: string

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

Defined in

types/CodeScanner.ts:50