com.crankuptheamps.client
Interface ConnectionStateListener

All Known Implementing Classes:
MessageStream

public interface ConnectionStateListener

An interface that allows an application to be notified when the client connects or disconnects to an AMPS server. To use a ConnectionStateListener, you implement this interface, construct an instance of your new class, and then use the addConnectionStateListener method on the Client to register for notifications.

Since:
4.0.0.0

Field Summary
static int Connected
          Constant passed when the client connects.
static int Disconnected
          Constant passed when the client disconnects.
 
Method Summary
 void connectionStateChanged(int newState_)
          Called on an implementation of this interface when the connection state changes.
 

Field Detail

Disconnected

static final int Disconnected
Constant passed when the client disconnects.

Since:
4.0.0.0
See Also:
Constant Field Values

Connected

static final int Connected
Constant passed when the client connects.

Since:
4.0.0.0
See Also:
Constant Field Values
Method Detail

connectionStateChanged

void connectionStateChanged(int newState_)
Called on an implementation of this interface when the connection state changes.

Since:
4.0.0.0