SystemEventType¶
-
public class
SystemEventType
¶ This class identifies the possible event types of a
SystemEvent
.Every type gives full information of what happened, divided by priority, and with an user-friendly description.
Every possible event is already created and is reused to improve performance. The objects can be compared directly.
See also:
SystemEvent
Fields¶
CACHE_CLEARED¶
-
public static final SystemInfoEventType
CACHE_CLEARED
¶ A constant describing a Cache Cleared event. This event is triggered by a call to
KallistoManager.refreshCache()
.
LINK_LOSS¶
-
public static final SystemErrorEventType
LINK_LOSS
¶ A constant describing a Link Loss event. This event is generated by an invalid disconnection of a
Kallisto
device that is under use or is supposed to be connected.Following this event, one of
LINK_REMOVED
orLINK_RECOVERED
will be triggered.
LINK_RECOVERED¶
-
public static final SystemInfoEventType
LINK_RECOVERED
¶ A constant describing a Link Recovered event. The connection was recovered with the
Kallisto
device and state restored.
LINK_REMOVED¶
-
public static final SystemInfoEventType
LINK_REMOVED
¶ A constant describing a Link Removed event. The
reconnection timeout
configured for reconnection expired or there was a problem restoring the connection.The device is removed from the internal list and destroyed.
REBOOT¶
-
public static final SystemInfoEventType
REBOOT
¶ A constant describing a Reboot event. This event is triggered by a call to
KallistoManager.reboot(Kallisto)
.
SCAN_CHANGED¶
-
public static final SystemInfoEventType
SCAN_CHANGED
¶ A constant describing a Scan Changed event. This event is triggered by a call to
KallistoManager.updateScannerConfiguration(ScannerConfiguration)
orKallistoManager.updateScannerFilter(ScannerFilter)
.
SCAN_FOUND_DEVICE¶
-
public static final SystemInfoEventType
SCAN_FOUND_DEVICE
¶ A constant describing a Found Device event. This event is triggered following a
SCAN_STARTED
event when a newKallisto
device is found.
SCAN_LOST_DEVICE¶
-
public static final SystemInfoEventType
SCAN_LOST_DEVICE
¶ A constant describing a Lost Device event. This event is triggered following a
SCAN_STARTED
when the scan is stopped and aKallisto
device disappeared.
SCAN_STARTED¶
-
public static final SystemInfoEventType
SCAN_STARTED
¶ A constant describing a Scan Started event. This event is triggered when the scanner worker starts scanning for new devices.
Depending of the
de.sensry.kallisto.bluetooth.scanner.ScannerConfiguration
, aSCAN_STOPPED
will be triggered following this event.
SCAN_STOPPED¶
-
public static final SystemInfoEventType
SCAN_STOPPED
¶ A constant describing a Scan Stopped event. The scanner worker stopped scanning for new devices.
STACK_BLOWN¶
-
public static final SystemErrorEventType
STACK_BLOWN
¶ A constant describing a Stack Blown event. This event is generated when the Bluetooth adapter is turned off.
If there are any devices under use,
LINK_LOSS
events will be triggered for each device.The system will try to turn on the Bluetooth adapter in order to continue working.
Following this event, one of
STACK_OK
orSTACK_IRREPARABLE
will be triggered.
STACK_IRREPARABLE¶
-
public static final SystemErrorEventType
STACK_IRREPARABLE
¶ A constant describing a Stack Irreparable event. This event is generated when the Bluetooth adapter can’t be turned on following a
STACK_BLOWN
event. This means something is wrong with the adapter and the system can’t continue.Following this event, the remote service will start cleaning up procedures and stop itself since there is no recovery possible and no new request will be possible. A
KallistoManager.SERVICE_DISCONNECTED
broadcast will be sent shortly after.
STACK_OK¶
-
public static final SystemInfoEventType
STACK_OK
¶ A constant describing a Stack Ok event. This event is triggered following a
STACK_BLOWN
event when the system can turn the Bluetooth adapter back on.
type¶
-
public final int
type
¶ Event type. Can be either
TYPE_INFO
orTYPE_ERROR
.