Class

Barcode


Description

Uses the device's camera to read any bar code types supported by the device.

Methods

Name

Parameters

Returns

Shared

FromImage

image As Picture

String()

Image

value As String, Size As Double, type As Barcode.Types = Barcode.Types.QR

Picture

StartScan

StopScan

Events

Name

Parameters

Returns

ScanCancelled

ScanCompleted

value As String

ScanFailed

Enumerations

Barcode.Types

Types

The types of barcodes that can be read.

Name

QR

Bar128

Method descriptions


Barcode.FromImage

FromImage(image As Picture) As String()

Returns an array of the unique identifiers from all detected barcodes in the image provided.

This method is shared.

Important

This method is not currently supported for Android.


Barcode.Image

Image(value As String, Size As Double, type As Barcode.Types = Barcode.Types.QR) As Picture

Returns an image with the value encoded as the specified type of barcode.

This method is shared.

Important

This method is not currently supported for Android.


Barcode.StartScan

StartScan

Opens the scanning user interface provided by the device to scan a barcode. The device will auto-detect the type of barcode.


Barcode.StopScan

StopScan

Stops the process of scanning barcodes and closes the scanning user interface on the device.

Important

This method is not currently supported for Android.

Event descriptions


Barcode.ScanCancelled

ScanCancelled

The user canceled the scan.


Barcode.ScanCompleted

ScanCompleted(value As String)

A barcode was successfully scanned. The value is the unique identifier scanned.


Barcode.ScanFailed

ScanFailed

The scan was not able to complete.

Notes

For Android 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

Desktop, iOS and Android projects types on macOS, Windows, iOS and Android operating systems.

See also

Object parent class