VIMessengerDelegate

Delegate that may be used to handle messenger events.

Members
–  messenger:didGetUser:  required

Triggered as a result of [VIMessenger getUser:] method call

- (void)messenger:(VIMessenger *)messenger didGetUser:(VIUserEvent *)event
Parameters
messenger

VIMessenger instance

event

VIUserEvent object with user data and service information

–  messenger:didEditUser:  required

Triggered as the result of [VIMessenger editUserWithCustomData:privateCustomData:] method call. Triggered only for users specified in the ‘subscribe’ method call.

- (void)messenger:(VIMessenger *)messenger didEditUser:(VIUserEvent *)event
Parameters
messenger

VIMessenger instance

event

VIUserEvent object with user data and service information

–  messenger:didSubscribe:  required

Triggered as the result of [VIMessenger subscribe:] method call.

- (void)messenger:(VIMessenger *)messenger didSubscribe:(VISubscribeEvent *)event
Parameters
messenger

VIMessenger instance

event

VISubscribeEvent object with subscription data and service information

–  messenger:didUnsubscribe:  required

Triggered as the result of [VIMessenger unsubscribe:] method call.

- (void)messenger:(VIMessenger *)messenger didUnsubscribe:(VISubscribeEvent *)event
Parameters
messenger

VIMessenger instance

event

VISubscribeEvent object with subscription data and service information

–  messenger:didReceiveError:  required

Triggered if error occurred as the result of any messenger API methods call

- (void)messenger:(VIMessenger *)messenger didReceiveError:(VIErrorEvent *)event
Parameters
messenger

VIMessenger instance

event

VIErrorEvent object with error details and service information

–  messenger:didSetStatus:  required

Triggered after user presence state has been changed.

- (void)messenger:(VIMessenger *)messenger didSetStatus:(VIUserStatusEvent *)event
Parameters
messenger

VIMessenger instance

event

VIUserStatusEvent object with user status data and service information

–  messenger:didCreateConversation:  required

Triggered when conversation is created as the result of [VIMessenger createConversation:moderators:title:distinct:enablePublicJoin:customData:] method call

- (void)messenger:(VIMessenger *)messenger didCreateConversation:(VIConversationEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationEvent object with conversation data and service information

–  messenger:didEditConversation:  required

Triggered when conversation properties were modified.

- (void)messenger:(VIMessenger *)messenger didEditConversation:(VIConversationEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationEvent object with conversation data and service information

–  messenger:didRemoveConversation:  required

Triggered when conversation was removed as the result of [VIMessenger removeConversation:] method call.

- (void)messenger:(VIMessenger *)messenger didRemoveConversation:(VIConversationEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationEvent object with conversation data and service info

–  messenger:didGetConversation:  required

Triggered when conversation description is received as the result of [VIMessenger getConversation:] method call.

- (void)messenger:(VIMessenger *)messenger didGetConversation:(VIConversationEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationEvent object with conversation data and service info

–  messenger:didSendMessage:  required

Triggered when new message is received as the result of [VIConversation sendMessage:payload:] called by any user.

- (void)messenger:(VIMessenger *)messenger didSendMessage:(VIMessageEvent *)event
Parameters
messenger

VIMessenger instance

event

VIMessageEvent object with message data and service information

–  messenger:didEditMessage:  required

Triggered when message was edited.

- (void)messenger:(VIMessenger *)messenger didEditMessage:(VIMessageEvent *)event
Parameters
messenger

VIMessenger instance

event

VIMessageEvent object with message data and service information

–  messenger:didRemoveMessage:  required

Triggered when message was removed.

- (void)messenger:(VIMessenger *)messenger didRemoveMessage:(VIMessageEvent *)event
Parameters
messenger

VIMessenger instance

event

VIMessageEvent object with message data and service information

–  messenger:didReceiveTypingNotification:  required

Triggered when information that some user is typing something is received as the result of [VIConversation typing] called by any user.

- (void)messenger:(VIMessenger *)messenger didReceiveTypingNotification:(VIConversationServiceEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationServiceEvent object with conversation UUID and service information

–  messenger:didReceiveReadConfirmation:  required

Triggered after another device with same logged in user called the [VIConversation markAsRead:] method.

- (void)messenger:(VIMessenger *)messenger didReceiveReadConfirmation:(VIConversationServiceEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationServiceEvent object with conversation UUID and service information

–  messenger:didReceiveDeliveryConfirmation:  required

Triggered after another device with same logged in user called [VIConversation markAsDelivered:] method.

- (void)messenger:(VIMessenger *)messenger didReceiveDeliveryConfirmation:(VIConversationServiceEvent *)event
Parameters
messenger

VIMessenger instance

event

VIConversationServiceEvent object with conversation UUID and service information

–  messenger:didRetransmitEvents:  required

Triggered as the result of [VIConversation retransmitEventsFrom:to:] method call on some conversation for this SDK instance

- (void)messenger:(VIMessenger *)messenger didRetransmitEvents:(VIRetransmitEvent *)event
Parameters
messenger

VIMessenger instance

event

VIRetransmitEvent object with retransmitted events and service information