barcodeDetected |
Type | message |
Dictionary | android.barcodescanner |
Library | Android Barcode Scanner |
Syntax | barcodeDetected <pBarcode>, <pID>
|
Associations | com.livecode.widget.native.android.barcodescanner |
Summary | Sent when a new barcode is detected.
|
OS | android |
Parameters | Name | Type | Description |
---|
pBarcode | | An array of the barcode's data which has the following keys:
- format: The barcode format. One of:
- contact information
- email
- isbn
- phone number
- product code
- sms
- text
- url
- wifi
- geo point
- calendar event
- driver license
- unknown
- value format: The format of the barcode's value. One of:
- Aztec
- Codabar
- Code 39
- Code 93
- Code 128
- Data Matrix
- EAN 8
- EAN 13
- ITF
- PDF 417
- QR Code
- UPC A
- UPC E
- unknown
- raw value: The barcode's value as it was encoded in the barcode.
- display value: The barcode's value formatted for display.
- parsed value: An array containing the fully formatted barcode value.
- snapshot: An array containing the barcode's snapshot data. This will only be
set if the snapshotMode has been set appropriately. The keys are:
- width: The width in pixels of the snapshot
- height: The height in pixels of the snapshot
- pixels: The raw pixels of the snapshot
|
pID | | The id used to reference the barcode.
|
|
Related | Property: snapshotMode
Message: barcodeRemoved, barcodeClicked
|
Description | The barcodeDetected message is sent when a new barcode is detected.
|