|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelEventListener
Client applications should implement this interface if they want to be notified when events are received on a public or private channel.
To bind your implementation of this interface to a channel, either:
Pusher.subscribe(String)
to subscribe and receive an instance of Channel
.Channel#bind(String, ChannelEventListener)
to bind your listener to a specified event.Pusher.subscribe(String, ChannelEventListener, String...)
to subscribe to a channel and
bind your listener to one or more events at the same time.
Method Summary | |
---|---|
void |
onSubscriptionSucceeded(String channelName)
Callback that is fired when a subscription success acknowledgement message is received from Pusher after subscribing to the channel. |
Methods inherited from interface com.pusher.client.channel.SubscriptionEventListener |
---|
onEvent |
Method Detail |
---|
void onSubscriptionSucceeded(String channelName)
Callback that is fired when a subscription success acknowledgement message is received from Pusher after subscribing to the channel.
For public channels this callback will be more or less immediate, assuming that you are connected to Pusher at the time of subscription. For private channels this callback will not be fired unless you are successfully authenticated.
channelName
- The name of the channel that was successfully subscribed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |