ScanBarCode

Definition:

ScanBarCode(timeout, reserved)

 

Description:

Scan a bar code or Quick Response (QR) Code.

 

Platforms:

All

 

Parameters:

timeout - required

On the Android Platform this parameter allows you to specify a timeout in seconds to wait for a response.

On the Apple, Windows Desktop and Windows Universal Platforms you must specify a value here but the value entered is ignored. On Apple and Windows Universal Platforms there is no timeout. On the Windows Desktop Platform the timeout is fixed at 30 seconds.

 

reserved - required

Must be an empty string, "".

Note, however, that if you experience problems with scanning bar codes or reading QR codes on iOS devices, you can try setting this parameter to "ZXingVer2" instead.

 

Returns:

String containing the bar code read or empty string, "", if scan failed.

 

Notes:

The device must have an internal camera or web cam which will be used to scan the bar code or Quick Response code.