public interface ChannelEventListener extends SubscriptionEventListener
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, SubscriptionEventListener)
to bind your
listener to a specified event.
Or, call
Pusher.subscribe(String, ChannelEventListener, String...)
to subscribe to a channel and bind your listener to one or more events at the
same time.
Modifier and Type | Method and Description |
---|---|
void |
onSubscriptionSucceeded(String channelName)
Callback that is fired when a subscription success acknowledgement
message is received from Pusher after subscribing to the channel.
|
onEvent
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.Copyright © 2016 Pusher. All rights reserved.