TwilioChatClientDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TwilioChatClient.h |
– chatClient:connectionStateChanged:
Called when the client connection state changes.
- (void)chatClient:(TwilioChatClient *)client connectionStateChanged:(TCHClientConnectionState)state
Parameters
client |
The chat client. |
---|---|
state |
The current connection state of the client. |
Discussion
Called when the client connection state changes.
Declared In
TwilioChatClient.h
– chatClient:synchronizationStatusChanged:
Called when the client synchronization state changes during startup.
- (void)chatClient:(TwilioChatClient *)client synchronizationStatusChanged:(TCHClientSynchronizationStatus)status
Parameters
client |
The chat client. |
---|---|
status |
The current synchronization status of the client. |
Discussion
Called when the client synchronization state changes during startup.
Declared In
TwilioChatClient.h
– chatClient:channelAdded:
Called when the current user has a channel added to their channel list.
- (void)chatClient:(TwilioChatClient *)client channelAdded:(TCHChannel *)channel
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
Discussion
Called when the current user has a channel added to their channel list.
Declared In
TwilioChatClient.h
– chatClient:channelChanged:
Called when one of the current users channels is changed.
- (void)chatClient:(TwilioChatClient *)client channelChanged:(TCHChannel *)channel
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
Discussion
Called when one of the current users channels is changed.
Declared In
TwilioChatClient.h
– chatClient:channelDeleted:
Called when one of the current users channels is deleted.
- (void)chatClient:(TwilioChatClient *)client channelDeleted:(TCHChannel *)channel
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
Discussion
Called when one of the current users channels is deleted.
Declared In
TwilioChatClient.h
– chatClient:channel:synchronizationStatusChanged:
Called when a channel the current the client is aware of changes synchronization state.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel synchronizationStatusChanged:(TCHChannelSynchronizationStatus)status
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
status |
The current synchronization status of the channel. |
Discussion
Called when a channel the current the client is aware of changes synchronization state.
Declared In
TwilioChatClient.h
– chatClient:channel:memberJoined:
Called when a channel the current user is subscribed to has a new member join.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel memberJoined:(TCHMember *)member
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
member |
The member. |
Discussion
Called when a channel the current user is subscribed to has a new member join.
Declared In
TwilioChatClient.h
– chatClient:channel:memberChanged:
Called when a channel the current user is subscribed to has a member modified.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel memberChanged:(TCHMember *)member
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
member |
The member. |
Discussion
Called when a channel the current user is subscribed to has a member modified.
Declared In
TwilioChatClient.h
– chatClient:channel:memberLeft:
Called when a channel the current user is subscribed to has a member leave.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel memberLeft:(TCHMember *)member
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
member |
The member. |
Discussion
Called when a channel the current user is subscribed to has a member leave.
Declared In
TwilioChatClient.h
– chatClient:channel:messageAdded:
Called when a channel the current user is subscribed to receives a new message.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel messageAdded:(TCHMessage *)message
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
message |
The message. |
Discussion
Called when a channel the current user is subscribed to receives a new message.
Declared In
TwilioChatClient.h
– chatClient:channel:messageChanged:
Called when a message on a channel the current user is subscribed to is modified.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel messageChanged:(TCHMessage *)message
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
message |
The message. |
Discussion
Called when a message on a channel the current user is subscribed to is modified.
Declared In
TwilioChatClient.h
– chatClient:channel:messageDeleted:
Called when a message on a channel the current user is subscribed to is deleted.
- (void)chatClient:(TwilioChatClient *)client channel:(TCHChannel *)channel messageDeleted:(TCHMessage *)message
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
message |
The message. |
Discussion
Called when a message on a channel the current user is subscribed to is deleted.
Declared In
TwilioChatClient.h
– chatClient:errorReceived:
Called when an error occurs.
- (void)chatClient:(TwilioChatClient *)client errorReceived:(TCHError *)error
Parameters
client |
The chat client. |
---|---|
error |
The error. |
Discussion
Called when an error occurs.
Declared In
TwilioChatClient.h
– chatClient:typingStartedOnChannel:member:
Called when a member of a channel starts typing.
- (void)chatClient:(TwilioChatClient *)client typingStartedOnChannel:(TCHChannel *)channel member:(TCHMember *)member
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
member |
The member. |
Discussion
Called when a member of a channel starts typing.
Declared In
TwilioChatClient.h
– chatClient:typingEndedOnChannel:member:
Called when a member of a channel ends typing.
- (void)chatClient:(TwilioChatClient *)client typingEndedOnChannel:(TCHChannel *)channel member:(TCHMember *)member
Parameters
client |
The chat client. |
---|---|
channel |
The channel. |
member |
The member. |
Discussion
Called when a member of a channel ends typing.
Declared In
TwilioChatClient.h
– chatClientToastSubscribed:
Called when you are successfully registered for push notifications.
- (void)chatClientToastSubscribed:(TwilioChatClient *)client
Parameters
client |
The chat client. |
---|
Discussion
Called when you are successfully registered for push notifications.
Declared In
TwilioChatClient.h
– chatClient:toastReceivedOnChannel:message:
Called as a result of TwilioChatClient’s receivedNotification: method being invoked. receivedNotification: parses the push payload and extracts the channel and message for the push notification then calls this delegate method.
- (void)chatClient:(TwilioChatClient *)client toastReceivedOnChannel:(TCHChannel *)channel message:(TCHMessage *)message
Parameters
client |
The chat client. |
---|---|
channel |
The channel for the push notification. |
message |
The message for the push notification. |
Discussion
Called as a result of TwilioChatClient’s receivedNotification: method being invoked. receivedNotification: parses the push payload and extracts the channel and message for the push notification then calls this delegate method.
Declared In
TwilioChatClient.h
– chatClient:toastRegistrationFailedWithError:
Called when registering for push notifications fails.
- (void)chatClient:(TwilioChatClient *)client toastRegistrationFailedWithError:(TCHError *)error
Parameters
client |
The chat client. |
---|---|
error |
An error indicating the failure. |
Discussion
Called when registering for push notifications fails.
Declared In
TwilioChatClient.h
– chatClient:userInfo:updated:
Called when the current user’s or that of any subscribed channel member’s userInfo is updated.
- (void)chatClient:(TwilioChatClient *)client userInfo:(TCHUserInfo *)userInfo updated:(TCHUserInfoUpdate)updated
Parameters
client |
The chat client. |
---|---|
userInfo |
The userInfo object for changed local user or channel member. |
updated |
Indicates what portion of the object changed. |
Discussion
Called when the current user’s or that of any subscribed channel member’s userInfo is updated.
Declared In
TwilioChatClient.h