scanthng.js Playground

Use this page to test various scanthng.js functions.

Open devtools to see responses.

API Key

Use either an Operator API Key or Access Token, since API v2 is used.

.identify({ filter })

type:
value:

.scan({ filter })

method:
type:

.scan(base64Data, { filter })

Uses filter from section above
data:

.scanStream({ filter, containerId })

Native scanning occurs only for QR, DataMatrix, and 1D barcodes if libraries are available.

method:
type:
offline:
close viewfinder on scan:
Frame at time of scan:

.scanQrCode(containerId)

Returns scanned string value, does not require a scope.

Note: Supports only QR codes.