Package com.pusher.client.channel
Interface PresenceChannelEventListener
-
- All Superinterfaces:
ChannelEventListener,PrivateChannelEventListener,SubscriptionEventListener
public interface PresenceChannelEventListener extends PrivateChannelEventListener
Used to listen for presence specific events as well as those defined by thePrivateChannelEventListenerand parent interfaces.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonUsersInformationReceived(java.lang.String channelName, java.util.Set<User> users)Called when the subscription has succeeded and an initial list of subscribed users has been received from Pusher.voiduserSubscribed(java.lang.String channelName, User user)Called when a new user subscribes to the channel.voiduserUnsubscribed(java.lang.String channelName, User user)Called when an existing user unsubscribes from the channel.-
Methods inherited from interface com.pusher.client.channel.ChannelEventListener
onSubscriptionSucceeded
-
Methods inherited from interface com.pusher.client.channel.PrivateChannelEventListener
onAuthenticationFailure
-
Methods inherited from interface com.pusher.client.channel.SubscriptionEventListener
onError, onEvent
-
-
-
-
Method Detail
-
onUsersInformationReceived
void onUsersInformationReceived(java.lang.String channelName, java.util.Set<User> users)
Called when the subscription has succeeded and an initial list of subscribed users has been received from Pusher.- Parameters:
channelName- The name of the channel the list is for.users- The users.
-
userSubscribed
void userSubscribed(java.lang.String channelName, User user)
Called when a new user subscribes to the channel.- Parameters:
channelName- channelName The name of the channel the list is for.user- The newly subscribed user.
-
userUnsubscribed
void userUnsubscribed(java.lang.String channelName, User user)
Called when an existing user unsubscribes from the channel.- Parameters:
channelName- The name of the channel that the user unsubscribed from.user- The user who unsubscribed.
-
-