Android Client Reference
Class DisconnectListener
Namespace: com.playerio
Language: Java
A disconnect listener
When you are using the multiplayer service and you want your client to handle disconnects from the server, you need to add a disconnect listener to your connection.
The easiest way to implement a listener is to use an anonymous inner class, like this:
Methods | |||
---|---|---|---|
public abstractvoid |
Implement this method to handle disconnects. |
DisconnectListener.onDisconnect
public abstractvoid |
|
Implement this method to handle disconnects.