Interface ICloverTransportObserver

All Known Implementing Classes:
DefaultCloverDevice

public interface ICloverTransportObserver
Asynchronous callback interface to handle device event and message notifications.
  • Method Details

    • onDeviceConnected

      void onDeviceConnected(ICloverTransport transport)
      Device is there but not yet ready for use
      Parameters:
      transport - transport on which the event was received
    • onDeviceReady

      void onDeviceReady(ICloverTransport transport)
      Device is there and ready for use
      Parameters:
      transport - transport on which the event was received
    • onDeviceDisconnected

      void onDeviceDisconnected(ICloverTransport transport)
      Device is not there anymore
      Parameters:
      transport - transport on which the event was received
    • onMessage

      void onMessage(String message)
      Called when a raw message is received from the device
      Parameters:
      message - message