Package | Description |
---|---|
com.pusher.client.channel |
Classes related to channels, which are subscriptions to data within Pusher, and channel event listener interfaces.
|
com.pusher.client.channel.impl | |
com.pusher.client.example |
Examples that can be executed as part of testing from the built .jar.
|
Modifier and Type | Method and Description |
---|---|
User |
PresenceChannel.getMe()
Gets the user that represents the currently connected client.
|
Modifier and Type | Method and Description |
---|---|
Set<User> |
PresenceChannel.getUsers()
Gets a set of users currently subscribed to the channel.
|
Modifier and Type | Method and Description |
---|---|
void |
PresenceChannelEventListener.userSubscribed(String channelName,
User user)
Called when a new user subscribes to the channel.
|
void |
PresenceChannelEventListener.userUnsubscribed(String channelName,
User user)
Called when an existing user unsubscribes from the channel.
|
Modifier and Type | Method and Description |
---|---|
void |
PresenceChannelEventListener.onUsersInformationReceived(String channelName,
Set<User> users)
Called when the subscription has succeeded and an initial list of
subscribed users has been received from Pusher.
|
Modifier and Type | Method and Description |
---|---|
User |
PresenceChannelImpl.getMe() |
Modifier and Type | Method and Description |
---|---|
Set<User> |
PresenceChannelImpl.getUsers() |
Modifier and Type | Method and Description |
---|---|
void |
PresenceChannelExampleApp.userSubscribed(String channelName,
User user) |
void |
PresenceChannelExampleApp.userUnsubscribed(String channelName,
User user) |
Modifier and Type | Method and Description |
---|---|
void |
PresenceChannelExampleApp.onUsersInformationReceived(String channelName,
Set<User> users) |
Copyright © 2016 Pusher. All rights reserved.