Package | Description |
---|---|
com.pusher.client |
Classes for connecting to Pusher, configuring the
Pusher instance and authenticating subscriptions. |
com.pusher.client.connection |
Classes related to the Pusher connection, connection state and monitoring connection state changes.
|
com.pusher.client.connection.websocket |
Modifier and Type | Method and Description |
---|---|
void |
Pusher.connect(ConnectionEventListener eventListener,
ConnectionState... connectionStates)
Binds a
ConnectionEventListener to the specified events and then
connects to Pusher. |
Modifier and Type | Method and Description |
---|---|
ConnectionState |
ConnectionStateChange.getCurrentState()
The current connection state.
|
ConnectionState |
ConnectionStateChange.getPreviousState()
The previous connections state.
|
ConnectionState |
Connection.getState()
Gets the current connection state.
|
static ConnectionState |
ConnectionState.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
ConnectionState.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Connection.bind(ConnectionState state,
ConnectionEventListener eventListener)
Bind to connection events.
|
boolean |
Connection.unbind(ConnectionState state,
ConnectionEventListener eventListener)
Unbind from connection state changes.
|
Constructor and Description |
---|
ConnectionStateChange(ConnectionState previousState,
ConnectionState currentState)
Used within the library to create a connection state change.
|
Modifier and Type | Method and Description |
---|---|
ConnectionState |
WebSocketConnection.getState() |
Modifier and Type | Method and Description |
---|---|
void |
WebSocketConnection.bind(ConnectionState state,
ConnectionEventListener eventListener) |
boolean |
WebSocketConnection.unbind(ConnectionState state,
ConnectionEventListener eventListener) |
Copyright © 2016 Pusher. All rights reserved.