public static interface Application.MessageReceived
| Modifier and Type | Method and Description |
|---|---|
Response |
onMessageReceived(Application source,
Command cmd,
MessageData data,
int time)
You can compare the Command by reference with the constants in that
class.
|
Response onMessageReceived(Application source, Command cmd, MessageData data, int time)
data will be null if that was what was
passed by the calling instance. The time paramter is a
timestamp.
In ordinary circumstances you should return OK.
If (for whatever reason) you chose not to handle the message, you
can return PASSTHROUGH which will
cause emission of this signal to continue, letting another handler
(in this application instance) deal with the event.