public enum BarcodeBSdk extends java.lang.Enum<BarcodeBSdk>
Modifier and Type | Class and Description |
---|---|
static interface |
BarcodeBSdk.Listener
Event listener for BarcodeBSdk.showImage.
|
Enum Constant and Description |
---|
abort
Barcode for Abort command, to be used for entering passkey.
|
batch_mode_disable
Barcode to disable batch mode.
|
batch_mode_erase_queue
Barcode to erase batch queue.
|
batch_mode_manual_enable
Barcode to enable manual batch mode.
|
batch_mode_send_batch_data
Barcode to send batch data.
|
delete
Barcode for Delete key, to be used for entering passkey.
|
enter
Barcode for Enter key, to be used for entering passkey.
|
link_in_spp_mode
Barcode to link in SPP mode.
|
N0
Barcode for number zero, to be used for entering passkey.
|
N1
Barcode for number one, to be used for entering passkey.
|
N2
Barcode for number two, to be used for entering passkey.
|
N3
Barcode for number three, to be used for entering passkey.
|
N4
Barcode for number four, to be used for entering passkey.
|
N5
Barcode for number five, to be used for entering passkey.
|
N6
Barcode for number six, to be used for entering passkey.
|
N7
Barcode for number seven, to be used for entering passkey.
|
N8
Barcode for number eight, to be used for entering passkey
|
N9
Barcode for number nine, to be used for entering passkey.
|
no_passkey_requested
Barcode to disable the passkey request.
|
passkey_requested
Barcode to request passkey.
|
pick_mode_disable
Barcode to Disable Pick mode.
|
pick_mode_enable
Barcode to enable pick mode.
|
power_off
Barcode to power off the reader.
|
restore_default
Barcode to restore the reader's default configuration.
|
transmit_software_version
Barcode to transmit the reader software version
|
unlink
Barcode to Unlink the reader from remote.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FNC3
Function code 3 string
|
Modifier and Type | Method and Description |
---|---|
static android.graphics.Bitmap |
generateBarcode(java.lang.String qrInputText,
com.google.zxing.BarcodeFormat barcodeFormat,
int width)
Generate the bitmap for input barcode
|
static BarcodeBSdk |
getBarcodeAt(int position)
Returns the barcode given its array index
|
static BarcodeBSdk |
getBarcodeById(int id)
Returns the barcode given its id
|
int |
getId()
Returns the barcode's id
|
static android.net.Uri |
getImagerUri(android.content.res.Resources resource,
BarcodeBSdk barcodeBSdk)
Returns the barcode's resource URI
|
static java.util.List<BarcodeBSdk> |
getList()
Returns the list of all barcode images present in SDK.
|
java.lang.String |
getName()
Returns the name of the barcode
|
protected java.lang.Integer |
getResName()
Returns the barcode's resource value
|
static void |
showImage(android.content.Context context,
BarcodeBSdk barcodeBSdk,
BarcodeBSdk.Listener listener)
Overload of showImage without "text" parameter
|
static void |
showImage(android.content.Context context,
BarcodeBSdk barcodeBSdk,
java.lang.String text,
BarcodeBSdk.Listener listener)
Returns the barcode's resource URI
|
static void |
showLinkInitiator(android.content.Context context,
java.lang.String mac,
BarcodeBSdk.Listener listener)
Show a barcode to initiate the bluetooth connection
|
java.lang.String |
toString()
Returns the name of the barcode.
|
static BarcodeBSdk |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BarcodeBSdk[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BarcodeBSdk N0
public static final BarcodeBSdk N1
public static final BarcodeBSdk N2
public static final BarcodeBSdk N3
public static final BarcodeBSdk N4
public static final BarcodeBSdk N5
public static final BarcodeBSdk N6
public static final BarcodeBSdk N7
public static final BarcodeBSdk N8
public static final BarcodeBSdk N9
public static final BarcodeBSdk abort
public static final BarcodeBSdk batch_mode_disable
public static final BarcodeBSdk batch_mode_erase_queue
public static final BarcodeBSdk batch_mode_manual_enable
public static final BarcodeBSdk batch_mode_send_batch_data
public static final BarcodeBSdk delete
public static final BarcodeBSdk enter
public static final BarcodeBSdk link_in_spp_mode
public static final BarcodeBSdk no_passkey_requested
public static final BarcodeBSdk passkey_requested
public static final BarcodeBSdk pick_mode_disable
public static final BarcodeBSdk pick_mode_enable
public static final BarcodeBSdk power_off
public static final BarcodeBSdk restore_default
public static final BarcodeBSdk transmit_software_version
public static final BarcodeBSdk unlink
public static final java.lang.String FNC3
public static BarcodeBSdk[] values()
for (BarcodeBSdk c : BarcodeBSdk.values()) System.out.println(c);
public static BarcodeBSdk valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getName()
protected java.lang.Integer getResName()
public java.lang.String toString()
toString
in class java.lang.Enum<BarcodeBSdk>
public static BarcodeBSdk getBarcodeById(int id)
id
- the barcode id to be searchedpublic static BarcodeBSdk getBarcodeAt(int position)
position
- the barcode's array indexpublic static android.net.Uri getImagerUri(android.content.res.Resources resource, BarcodeBSdk barcodeBSdk)
resource
- Android ResourcesbarcodeBSdk
- BarcodeBSdk objectpublic static java.util.List<BarcodeBSdk> getList()
public static void showImage(android.content.Context context, BarcodeBSdk barcodeBSdk, BarcodeBSdk.Listener listener)
context
- Android content contextbarcodeBSdk
- BarcodeBSdk objectlistener
- Dialog window's listener for "OK" and "Cancel" button pressedpublic static void showImage(android.content.Context context, BarcodeBSdk barcodeBSdk, java.lang.String text, BarcodeBSdk.Listener listener)
context
- Android content contextbarcodeBSdk
- BarcodeBSdk objecttext
- String text to be put under barcode imagelistener
- Dialog window's listener for "OK" and "Cancel" button pressedpublic int getId()
public static void showLinkInitiator(android.content.Context context, java.lang.String mac, BarcodeBSdk.Listener listener)
context
- Android content contextmac
- Android device MAC Address string, without ":" characterlistener
- Dialog window's listener for "OK" and "Cancel" button pressedpublic static android.graphics.Bitmap generateBarcode(java.lang.String qrInputText, com.google.zxing.BarcodeFormat barcodeFormat, int width)
qrInputText
- Text string to be generatedbarcodeFormat
- ZXing BarcodeFormat valuewidth
- Image's width