Interface ICloverTransportObserver
- All Known Implementing Classes:
DefaultCloverDevice
public interface ICloverTransportObserver
Asynchronous callback interface to handle device event and message notifications.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonDeviceConnected(ICloverTransport transport) Device is there but not yet ready for usevoidonDeviceDisconnected(ICloverTransport transport) Device is not there anymorevoidonDeviceReady(ICloverTransport transport) Device is there and ready for usevoidCalled when a raw message is received from the device
-
Method Details
-
onDeviceConnected
Device is there but not yet ready for use- Parameters:
transport- transport on which the event was received
-
onDeviceReady
Device is there and ready for use- Parameters:
transport- transport on which the event was received
-
onDeviceDisconnected
Device is not there anymore- Parameters:
transport- transport on which the event was received
-
onMessage
Called when a raw message is received from the device- Parameters:
message- message
-