Skip to main content

Interface: Code

A scanned code.

Properties​

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


type​

• type: "unknown" | CodeType

The type of the code that was scanned.

Defined in​

CodeScanner.ts:25


value​

• Optional value: string

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

Defined in​

CodeScanner.ts:29