PlayerIO

The fastest way to build online games without breaking a sweat.

Android Client Reference

Android  class documentationClass 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
onDisconnect ()

Implement this method to handle disconnects.

DisconnectListener.onDisconnect

public abstractvoid
onDisconnect ()

Implement this method to handle disconnects.