public class IntentWedge extends PropertyGroup
IntentWedge is the class that configures the Decode Wedge
capability with the intent mode. This means that the label is sent to the
foreground application in the form of an implicit intent. In order to
retrieve the label type string, "com.datalogic.decodewedge.label_type" is the
name argument to be used with Intent.getStringExtra(). In order to retrieve
the output data as string, "com.datalogic.decodewedge.data_string" is the
name argument to be used with Intent.getStringExtra() . In case of
concatenated barcodes, the decode data is concatenated and sent out as a
single string. In order to retrieve the output data as a list of byte arrays,
"com.datalogic.decodewedge.decode_data" is the name argument to be used with
Intent.getSerializableExtra(). For barcode symbologies that support
concatenation, the decode data is stored in multiple byte arrays (one byte
array per bar code). Clients can get data in each byte array by passing an
index.| Modifier and Type | Field and Description |
|---|---|
TextProperty |
action
action is the intent action name. |
TextProperty |
category
category is the intent category name. |
EnumProperty<IntentDeliveryMode> |
deliveryMode
deliveryMode indicates the method by which the intent is
delivered. |
BooleanProperty |
enable
enable sets the intent mode. |
static java.lang.String |
EXTRA_BARCODE_DATA
When the IntentWedge is sent to a listening application, the decoded label is dispatched
under a specific byte array extra with the following name, by default.
|
static java.lang.String |
EXTRA_BARCODE_STRING
When the IntentWedge is sent to a listening application, the decoded label is dispatched
under a specific String extra with the following name, by default.
|
static java.lang.String |
EXTRA_BARCODE_TYPE
When the IntentWedge is sent to a listening application, the decoded label type is dispatched
under a specific String extra with the following name, by default.
|
TextProperty |
extraBarcodeData
extraBarcodeData indicates the corresponding intent extra tag, associated to a byte array containing the read label. |
TextProperty |
extraBarcodeString
extraBarcodeString indicates the corresponding intent extra tag, associated to a string containing the read label. |
TextProperty |
extraBarcodeType
extraBarcodeType indicates the corresponding intent extra tag, associated to a string containing the type of read label. |
| Constructor and Description |
|---|
IntentWedge(PropertyGetter editor)
This is the constructor of IntentWedge.
|
getGroups, getId, getName, getProperties, getPropertyById, getPropertyByName, getPropertyGroupById, getPropertyGroupByName, isFullySupported, isSupported, load, setToDefault, storepublic static final java.lang.String EXTRA_BARCODE_DATA
public static final java.lang.String EXTRA_BARCODE_TYPE
public static final java.lang.String EXTRA_BARCODE_STRING
public BooleanProperty enable
enable sets the intent mode.public TextProperty action
action is the intent action name. The default value is
"com.datalogic.decodewedge.decode_action".public TextProperty category
category is the intent category name. The default value is
"com.datalogic.decodewedge.decode_category".public EnumProperty<IntentDeliveryMode> deliveryMode
deliveryMode indicates the method by which the intent is
delivered. The default value is INTENT_DELIVERY_MODE_ENUM.BROADCAST.public TextProperty extraBarcodeData
extraBarcodeData indicates the corresponding intent extra tag, associated to a byte array containing the read label.
The default value is EXTRA_BARCODE_DATA.public TextProperty extraBarcodeType
extraBarcodeType indicates the corresponding intent extra tag, associated to a string containing the type of read label.
The default value is EXTRA_BARCODE_TYPE.public TextProperty extraBarcodeString
extraBarcodeString indicates the corresponding intent extra tag, associated to a string containing the read label.
The default value is EXTRA_BARCODE_STRING.public IntentWedge(PropertyGetter editor)
editor - A PropertyGetter used to load the current barcode family.