public enum ScanAndPairResults extends java.lang.Enum<ScanAndPairResults>
| Enum Constant and Description | 
|---|
BLUETOOTH_DEVICE_DISCOVERY_FAILED
Unable to discover Bluetooth device 
 | 
BLUETOOTH_NOT_ENABLED
Failure in Bluetooth initialization 
 | 
BLUETOOTH_SERVICE_DISCOVERY_FAILED
Unable to perform Bluetooth service discovery 
 | 
DEVICE_ALREADY_PAIRED
Trying to pair a Bluetooth device which is already paired. 
 | 
DEVICE_NOT_PAIRED
Trying to unpair a Bluetooth device which is not yet paired. 
 | 
DEVICE_PAIRING_FAILED
Failure in Bluetooth pairing 
 | 
DEVICE_UNPAIRING_FAILED
Failure in Bluetooth unpairing 
 | 
FAILURE
Operation is failed. 
 | 
INPROGRESS
The operation requested is in progress. 
 | 
INVALID_BLUETOOTH_DEVICE_INFO
Invalid Bluetooth address or name provided 
 | 
INVALID_CONFIG
Invalid configuration 
 | 
INVALID_OBJECT
The object is not valid. 
 | 
INVALID_PAIRING_PIN
Invalid Pin entered for Bluetooth pairing 
 | 
INVALID_SCANNED_DATA
Invalid scanned data. 
 | 
PAIRING_TIMEDOUT
Bluetooth pairing timed out 
 | 
PREVIOUS_COMMAND_PENDING
Previously requested command is in progress, wait for it to complete. 
 | 
SCANNER_IN_USE
Scanner is busy in performing some other operation 
 | 
SCANNER_INIT_FAILURE
Error in opening scanner 
 | 
SCANNER_NOT_SUPPORTED
Scanner not supported or not available 
 | 
SCANNER_READ_FAILED
Error in scanning barcode 
 | 
SCANNER_UNINT_FAILED
Error in closing scanner 
 | 
SUCCESS
Success 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
getErrorDescription(ScanAndPairResults errorCode)
Get Error Description from the error code passed 
 | 
static ScanAndPairResults | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static ScanAndPairResults[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final ScanAndPairResults SUCCESS
public static final ScanAndPairResults FAILURE
public static final ScanAndPairResults INVALID_OBJECT
public static final ScanAndPairResults INVALID_CONFIG
public static final ScanAndPairResults INVALID_BLUETOOTH_DEVICE_INFO
public static final ScanAndPairResults INVALID_PAIRING_PIN
public static final ScanAndPairResults BLUETOOTH_NOT_ENABLED
public static final ScanAndPairResults BLUETOOTH_DEVICE_DISCOVERY_FAILED
public static final ScanAndPairResults BLUETOOTH_SERVICE_DISCOVERY_FAILED
public static final ScanAndPairResults DEVICE_NOT_PAIRED
public static final ScanAndPairResults DEVICE_ALREADY_PAIRED
public static final ScanAndPairResults DEVICE_PAIRING_FAILED
public static final ScanAndPairResults DEVICE_UNPAIRING_FAILED
public static final ScanAndPairResults PAIRING_TIMEDOUT
public static final ScanAndPairResults SCANNER_INIT_FAILURE
public static final ScanAndPairResults SCANNER_UNINT_FAILED
public static final ScanAndPairResults SCANNER_NOT_SUPPORTED
public static final ScanAndPairResults SCANNER_IN_USE
public static final ScanAndPairResults INVALID_SCANNED_DATA
public static final ScanAndPairResults SCANNER_READ_FAILED
public static final ScanAndPairResults PREVIOUS_COMMAND_PENDING
public static final ScanAndPairResults INPROGRESS
public static ScanAndPairResults[] values()
for (ScanAndPairResults c : ScanAndPairResults.values()) System.out.println(c);
public static ScanAndPairResults 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 static java.lang.String getErrorDescription(ScanAndPairResults errorCode)
errorCode - - Error code for which the description has to be retrieved