Package com.blukii.sdk.discovery
Enum Class BlukiiDiscoveryError
- All Implemented Interfaces:
Serializable
,Comparable<BlukiiDiscoveryError>
,Constable
Error codes for discovery functions of class
BlukiiClient
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe BLE scanning has been failed because of an Bluetooth Adapter error.Bluetooth is off on the mobile device.Initialization of the discovery service has failed.No error.The BLE scanner cannot be started by an unknown error.The BLE scanner cannot be stopped by an unknown error.Termination of the discovery service has failed. -
Method Summary
Modifier and TypeMethodDescriptionstatic BlukiiDiscoveryError
Returns the enum constant of this class with the specified name.static BlukiiDiscoveryError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
No error. -
INIT_FAILED
Initialization of the discovery service has failed.Applies to:
BlukiiClient.initDiscovery(BlukiiClient.OnDiscoveryListener)
-
TERMINATION_FAILED
Termination of the discovery service has failed.Applies to:
BlukiiClient.terminateDiscovery()
-
BLUETOOTH_OFF
Bluetooth is off on the mobile device.Applies to:
BlukiiClient.startDiscovery()
-
STARTBLE_FAILED
The BLE scanner cannot be started by an unknown error.Applies to:
BlukiiClient.startDiscovery()
-
STOPBLE_FAILED
The BLE scanner cannot be stopped by an unknown error.Applies to:
BlukiiClient.startDiscovery()
andBlukiiClient.stopDiscovery()
-
BLESCAN_FAILED
The BLE scanning has been failed because of an Bluetooth Adapter error.Note: if this error is fired more than once, it is recommended to restart the Bluetooth Adapter. See
BluetoothAdapter.disable()
andBluetoothAdapter.enable()
for more information.Applies to:
BlukiiClient.startDiscovery()
andBlukiiClient.stopDiscovery()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-