com.pusher.client.channel
Interface ChannelEventListener

All Superinterfaces:
SubscriptionEventListener
All Known Subinterfaces:
PresenceChannelEventListener, PrivateChannelEventListener
All Known Implementing Classes:
ExampleApp, PresenceChannelExampleApp, PrivateChannelExampleApp

public interface ChannelEventListener
extends SubscriptionEventListener

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:

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.


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

onSubscriptionSucceeded

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.

Parameters:
channelName - The name of the channel that was successfully subscribed.


Copyright © 2013 Pusher. All Rights Reserved.