Package com.openfin.desktop
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 voidonClose(java.lang.String error)Callback when connection is closedvoidonError(java.lang.String reason)Callback when client cannot start or connect to the Desktop.voidonMessage(java.lang.String message)Callback when a message is sent to this clientvoidonOutgoingMessage(java.lang.String message)Callback when a message is sent from this clientvoidonReady()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
-