Package com.openfin.desktop
Interface DesktopStateListener
-
- All Known Implementing Classes:
ExternalWindowObserver,Test
public interface DesktopStateListenerlistener interface for receiving status updates from AppDesktop.
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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
-
-