barcodeDetected

Typemessage
Dictionaryandroid.barcodescanner
LibraryAndroid Barcode Scanner
Syntax
barcodeDetected <pBarcode>, <pID>
Associationscom.livecode.widget.native.android.barcodescanner
Summary

Sent when a new barcode is detected.

OSandroid
Parameters
NameTypeDescription
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.

RelatedProperty: snapshotMode
Message: barcodeRemoved, barcodeClicked
Description

The barcodeDetected message is sent when a new barcode is detected.