TWCConversationDelegate Protocol Reference

Conforms to NSObject
Declared in TWCConversation.h

Overview

Delegate for TWCConversation objects. This delegate is called with conversation life cycle events.

– conversation:didConnectParticipant:

Called when participant is connected to conversation.

- (void)conversation:(nonnull TWCConversation *)conversation didConnectParticipant:(nonnull TWCParticipant *)participant

Parameters

conversation

The conversation.

participant

The participant.

Discussion

Called when participant is connected to conversation.

Declared In

TWCConversation.h

– conversation:didFailToConnectParticipant:error:

Called when participant is not connected due to an error.

- (void)conversation:(nonnull TWCConversation *)conversation didFailToConnectParticipant:(nonnull TWCParticipant *)participant error:(nonnull NSError *)error

Parameters

conversation

The conversation.

participant

The participant.

error

The error encountered in adding the participant to the conversation, if any.

Discussion

Called when participant is not connected due to an error.

Declared In

TWCConversation.h

– conversation:didDisconnectParticipant:

Called when specified participant is disconnected from conversation either by request or due to an error.

- (void)conversation:(nonnull TWCConversation *)conversation didDisconnectParticipant:(nonnull TWCParticipant *)participant

Parameters

conversation

The Conversation which the Participant disconnected from.

participant

The Participant which disconnected.

Discussion

Called when specified participant is disconnected from conversation either by request or due to an error.

Declared In

TWCConversation.h

– conversationEnded:

Called when the conversation ends after the last participant leaves.

- (void)conversationEnded:(nonnull TWCConversation *)conversation

Parameters

conversation

The Conversation that ended.

Discussion

Called when the conversation ends after the last participant leaves.

Declared In

TWCConversation.h

– conversationEnded:error:

Called when the Conversation ends with an error.

- (void)conversationEnded:(nonnull TWCConversation *)conversation error:(nonnull NSError *)error

Parameters

conversation

The Conversation that ended.

error

An error indicating why the Conversation ended.

Discussion

Called when the Conversation ends with an error.

Declared In

TWCConversation.h