Class

Barcode


Description

Uses the device's camera to scan barcodes then returns the value the barcode symbolizes.

Methods

Name

Parameters

Returns

Shared

StartScan

Events

Name

Parameters

Returns

ScanCancelled

ScanCompleted

value As String

ScanFailed

Method descriptions


Barcode.StartScan

StartScan

Engages the device's camera to begin looking for a bar code to scan.

Event descriptions


Barcode.ScanCancelled

ScanCancelled

The user cancelled the scan.


Barcode.ScanCompleted

ScanCompleted(value As String)

A barcode was successfully scanned. The data it represents is passed in the value parameter.


Barcode.ScanFailed

ScanFailed

The scan failed.

Notes

For Play Store installs, the Play Store will download and install the barcode library if it was not already installed on the device. For non Play Store-installs, the OS will download the library after it is first used (if it is not already installed). Attempting to scan before the library is installed (which could take several minutes depending on how the OS prioritizes it) will result in the ScanFailed event will be called until it completes.

Compatibility

Android projects on all supported operating systems.

See also

Object parent class