TwilioIPMessagingClientDelegate Protocol Reference

Conforms to NSObject
Declared in TwilioIPMessagingClient.h

Overview

This protocol declares the IP Messaging client delegate methods.

– ipMessagingClient:synchronizationStatusChanged:

Called when the client synchronization state changes during startup.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client synchronizationStatusChanged:(TWMClientSynchronizationStatus)status

Parameters

client

The IP Messaging client.

status

The current synchronization status of the client.

Discussion

Called when the client synchronization state changes during startup.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channelAdded:

Called when the current user has a channel added to their channel list.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channelAdded:(TWMChannel *)channel

Parameters

client

The IP Messaging client.

channel

The channel.

Discussion

Called when the current user has a channel added to their channel list.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channelChanged:

Called when one of the current users channels is changed.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channelChanged:(TWMChannel *)channel

Parameters

client

The IP Messaging client.

channel

The channel.

Discussion

Called when one of the current users channels is changed.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channelDeleted:

Called when one of the current users channels is deleted.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channelDeleted:(TWMChannel *)channel

Parameters

client

The IP Messaging client.

channel

The channel.

Discussion

Called when one of the current users channels is deleted.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channelHistoryLoaded:

Called when one of the current users channels has fully loaded historical messages. (Deprecated: When using the new client initialization methods, message loading will depend on the policy you choose. If you specify a large number of messages to synchronize, then the history will be loaded when the channel reports that it is synchronized. If you are progressively loading messages, the history chunks will be available via the completion handler for the get messages call.)

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channelHistoryLoaded:(TWMChannel *)channel

Parameters

client

The IP Messaging client.

channel

The channel.

Discussion

Called when one of the current users channels has fully loaded historical messages.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channel:synchronizationStatusChanged:

Called when a channel the current the client is aware of changes synchronization state.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel synchronizationStatusChanged:(TWMChannelSynchronizationStatus)status

Parameters

client

The IP Messaging 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

TwilioIPMessagingClient.h

– ipMessagingClient:channel:memberJoined:

Called when a channel the current user is subscribed to has a new member join.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel memberJoined:(TWMMember *)member

Parameters

client

The IP Messaging 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

TwilioIPMessagingClient.h

– ipMessagingClient:channel:memberChanged:

Called when a channel the current user is subscribed to has a member modified.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel memberChanged:(TWMMember *)member

Parameters

client

The IP Messaging client.

channel

The channel.

member

The member.

Discussion

Called when a channel the current user is subscribed to has a member modified.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channel:memberLeft:

Called when a channel the current user is subscribed to has a member leave.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel memberLeft:(TWMMember *)member

Parameters

client

The IP Messaging client.

channel

The channel.

member

The member.

Discussion

Called when a channel the current user is subscribed to has a member leave.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channel:messageAdded:

Called when a channel the current user is subscribed to receives a new message.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel messageAdded:(TWMMessage *)message

Parameters

client

The IP Messaging client.

channel

The channel.

message

The message.

Discussion

Called when a channel the current user is subscribed to receives a new message.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:channel:messageChanged:

Called when a message on a channel the current user is subscribed to is modified.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel messageChanged:(TWMMessage *)message

Parameters

client

The IP Messaging 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

TwilioIPMessagingClient.h

– ipMessagingClient:channel:messageDeleted:

Called when a message on a channel the current user is subscribed to is deleted.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client channel:(TWMChannel *)channel messageDeleted:(TWMMessage *)message

Parameters

client

The IP Messaging 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

TwilioIPMessagingClient.h

– ipMessagingClient:errorReceived:

Called when an error occurs.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client errorReceived:(TWMError *)error

Parameters

client

The IP Messaging client.

error

The error.

Discussion

Called when an error occurs.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:typingStartedOnChannel:member:

Called when a member of a channel starts typing.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client typingStartedOnChannel:(TWMChannel *)channel member:(TWMMember *)member

Parameters

client

The IP Messaging client.

channel

The channel.

member

The member.

Discussion

Called when a member of a channel starts typing.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:typingEndedOnChannel:member:

Called when a member of a channel ends typing.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client typingEndedOnChannel:(TWMChannel *)channel member:(TWMMember *)member

Parameters

client

The IP Messaging client.

channel

The channel.

member

The member.

Discussion

Called when a member of a channel ends typing.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClientToastSubscribed:

Called when you are successfully registered for push notifications.

- (void)ipMessagingClientToastSubscribed:(TwilioIPMessagingClient *)client

Parameters

client

The IP Messaging client.

Discussion

Called when you are successfully registered for push notifications.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:toastReceivedOnChannel:message:

Called when you are successfully registered for push notifications.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client toastReceivedOnChannel:(TWMChannel *)channel message:(TWMMessage *)message

Parameters

client

The IP Messaging client.

channel

The channel for the push notification.

message

The message for the push notification.

Discussion

Called when you are successfully registered for push notifications.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:toastRegistrationFailedWithError:

Called when registering for push notifications fails.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client toastRegistrationFailedWithError:(TWMError *)error

Parameters

client

The IP Messaging client.

error

An error indicating the failure.

Discussion

Called when registering for push notifications fails.

Declared In

TwilioIPMessagingClient.h

– ipMessagingClient:userInfo:updated:

Called when the current user’s or that of any subscribed channel member’s userInfo is updated.

- (void)ipMessagingClient:(TwilioIPMessagingClient *)client userInfo:(TWMUserInfo *)userInfo updated:(TWMUserInfoUpdate)updated

Parameters

client

The IP Messaging client.

userInfo

The userInfo object.

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

TwilioIPMessagingClient.h