SIGN UP

VIMessengerDelegate

Delegate that may be used to handle messenger events.

Methods

messenger:didCreateConversation:

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

Parameters

messenger:didEditConversation:

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

Triggered when conversation properties were modified.

Parameters

messenger:didEditMessage:

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

Triggered when message was edited.

Parameters

messenger:didEditUser:

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

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

Triggered only for users specified in the 'subscribe' method call.

Parameters

  • messenger:

    VIMessenger *

    Messenger instance.

  • event:

    VIUserEvent *

    Event object with user data and service information.

messenger:didGetConversation:

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

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

Parameters

messenger:didGetUser:

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

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

Parameters

  • messenger:

    VIMessenger *

    Messenger instance.

  • event:

    VIUserEvent *

    Event object with user data and service information.

messenger:didReceiveDeliveryConfirmation:

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

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

Parameters

messenger:didReceiveError:

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

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

Parameters

  • messenger:

    VIMessenger *

    Messenger instance.

  • event:

    VIErrorEvent *

    Event object with error details and service information.

messenger:didReceiveReadConfirmation:

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

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

Parameters

messenger:didReceiveTypingNotification:

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

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

Parameters

messenger:didRemoveConversation:

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

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

Parameters

messenger:didRemoveMessage:

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

Triggered when message was removed.

Parameters

messenger:didRetransmitEvents:

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

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

Parameters

messenger:didSendMessage:

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

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

Parameters

messenger:didSetStatus:

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

Triggered after user presence state has been changed.

Parameters

messenger:didSubscribe:

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

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

Parameters

messenger:didUnsubscribe:

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

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

Parameters