|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
static final int Disconnected
static final int Connected
Method Detail |
---|
void connectionStateChanged(int newState_)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |