Interface DesktopStateListener

All Known Implementing Classes:
ExternalWindowObserver, Test

public interface DesktopStateListener
listener interface for receiving status updates from AppDesktop.
  • Method Summary

    Modifier and Type Method Description
    void onClose​(java.lang.String error)
    Callback when connection is closed
    void onError​(java.lang.String reason)
    Callback when client cannot start or connect to the Desktop.
    void onMessage​(java.lang.String message)
    Callback when a message is sent to this client
    void onOutgoingMessage​(java.lang.String message)
    Callback when a message is sent from this client
    void onReady()
    Callback when Desktop is successfully connected and ready to accept commands.
  • Method Details

    • onReady

      void onReady()
      Callback when Desktop is successfully connected and ready to accept commands.
    • onClose

      void onClose​(java.lang.String error)
      Callback when connection is closed
      Parameters:
      error - Error message. null for normal close
    • onError

      void onError​(java.lang.String reason)
      Callback when client cannot start or connect to the Desktop.
      Parameters:
      reason - Error message
    • onMessage

      void onMessage​(java.lang.String message)
      Callback when a message is sent to this client
      Parameters:
      message - Message text
    • onOutgoingMessage

      void onOutgoingMessage​(java.lang.String message)
      Callback when a message is sent from this client
      Parameters:
      message - Message text