|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IOCallback
The Interface IOCallback. A callback interface to SocketIO
| Method Summary | |
|---|---|
void |
on(java.lang.String event,
IOAcknowledge ack,
java.lang.Object... args)
On [Event]. |
void |
onConnect()
On connect. |
void |
onDisconnect()
On disconnect. |
void |
onError(SocketIOException socketIOException)
On error. |
void |
onMessage(org.json.JSONObject json,
IOAcknowledge ack)
On message. |
void |
onMessage(java.lang.String data,
IOAcknowledge ack)
On message. |
| Method Detail |
|---|
void onDisconnect()
void onConnect()
void onMessage(java.lang.String data,
IOAcknowledge ack)
data - the data.ack - an IOAcknowledge instance, may be null if there's none
void onMessage(org.json.JSONObject json,
IOAcknowledge ack)
json - JSON object sent by server.ack - an IOAcknowledge instance, may be null if there's none
void on(java.lang.String event,
IOAcknowledge ack,
java.lang.Object... args)
event - Name of the eventack - an IOAcknowledge instance, may be null if there's noneargs - Arguments of the eventvoid onError(SocketIOException socketIOException)
socketIOException - the last exception describing the error
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||