|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
Represents a connection to Pusher.
Method Summary | |
---|---|
void |
bind(ConnectionState state,
ConnectionEventListener eventListener)
Bind to connection events. |
void |
connect()
No need to call this via the API. |
String |
getSocketId()
Gets a unique connection ID. |
ConnectionState |
getState()
Gets the current connection state. |
boolean |
unbind(ConnectionState state,
ConnectionEventListener eventListener)
Unbind from connection state changes. |
Method Detail |
---|
void connect()
com.pusher.client.Pusher.connect()
.
void bind(ConnectionState state, ConnectionEventListener eventListener)
state
- The states to bind to.eventListener
- A listener to be called when the state changes.boolean unbind(ConnectionState state, ConnectionEventListener eventListener)
state
- The state to unbind from.eventListener
- The listener to be unbound.
true
if the unbind was successful, otherwise false
.ConnectionState getState()
String getSocketId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |