public interface ChatClientListener
Modifier and Type | Method and Description |
---|---|
void |
onChannelAdd(Channel channel)
Called when the current user adds a channel to their list of channels.
|
void |
onChannelChange(Channel channel)
Called when one the channel of the current user is changed.
|
void |
onChannelDelete(Channel channel)
Called when one of the channel of the current user is deleted.
|
void |
onChannelInvite(Channel channel)
Called when the current user is invited to a channel.
|
void |
onChannelSynchronizationChange(Channel channel)
Called when channel synchronization status changed.
|
void |
onClientSynchronization(ChatClient.SynchronizationStatus status)
Called when client synchronization status changes
|
void |
onConnectionStateChange(ChatClient.ConnectionState state)
Called when client connnection state has changed.
|
void |
onError(ErrorInfo errorInfo)
Called when an errorInfo condition occurs.
|
void |
onToastFailed(ErrorInfo errorInfo)
Called when registering for push notifications fails.
|
void |
onToastNotification(java.lang.String channelId,
java.lang.String messageId)
Called when client receives a GCM notification.
|
void |
onToastSubscribed()
Called when you are successfully registered for push notifications.
|
void |
onUserInfoChange(UserInfo userInfo,
UserInfo.UpdateReason reason)
Called when user info is updated for currently loaded users
|
void onChannelAdd(Channel channel)
channel
- The channel that got added.void onChannelInvite(Channel channel)
channel
- The channel that the user is invited to.void onChannelChange(Channel channel)
channel
- The channel that changed.void onChannelDelete(Channel channel)
channel
- The channel that got deleted.void onChannelSynchronizationChange(Channel channel)
channel
- Callback for this Channel.void onError(ErrorInfo errorInfo)
errorInfo
- ErrorInfo
Object containing errorInfo infovoid onUserInfoChange(UserInfo userInfo, UserInfo.UpdateReason reason)
userInfo
- User info object.reason
- Reason for update.void onClientSynchronization(ChatClient.SynchronizationStatus status)
status
- new client synchronization statusvoid onToastNotification(java.lang.String channelId, java.lang.String messageId)
channelId
- Sid of related channelmessageId
- Sid of related message, if applicable, empty string otherwisevoid onToastSubscribed()
void onToastFailed(ErrorInfo errorInfo)
errorInfo
- An error indicating the failure.void onConnectionStateChange(ChatClient.ConnectionState state)
state
- New connection state.