NXMConversationDelegate
Objective-C
@protocol NXMConversationDelegate <NSObject>
Swift
protocol NXMConversationDelegate : NSObjectProtocol
The NXMConversationDelegate protocol notifies on conversation events.
-
Received a conversation.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceive:(nonnull NSError *)error;Swift
func conversation(_ conversation: NXMConversation, didReceive error: Error)Parameters
conversationA
NXMConversationobject, the conversation received.errorAn error.
-
Received a custom event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveCustomEvent:(nonnull NXMCustomEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMCustomEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the custom event.eventAn
NXMCustomEventobject. -
Received a text event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveTextEvent:(nonnull NXMTextEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMTextEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the text event.eventAn
NXMTextEventobject. -
Received an image event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveImageEvent:(nonnull NXMImageEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMImageEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the image event.eventAn
NXMImageEventobject. -
Received a message event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveMessageEvent:(nonnull NXMMessageEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMMessageEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the message event.eventAn
NXMMessageEventobject. -
Received a message status event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveMessageStatusEvent:(nonnull NXMMessageStatusEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMMessageStatusEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the message status event.eventAn
NXMMessageStatusEventobject. -
Received a typing event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveTypingEvent:(nonnull NXMTextTypingEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMTextTypingEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the typing event.eventAn
NXMTextTypingEventobject. -
Received a member event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveMemberEvent:(nonnull NXMMemberEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMMemberEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the member event.eventAn
NXMMemberEventobject. -
Received a leg status event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveLegStatusEvent:(nonnull NXMLegStatusEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMLegStatusEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the leg status event.eventAn
NXMLegStatusEventobject. -
Received a member message status event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveMemberMessageStatusEvent: (nonnull NXMMemberMessageStatusEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMMemberMessageStatusEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the member message status event.eventAn
NXMMemberMessageStatusEventobject. -
Received a media event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveMediaEvent:(nonnull NXMMediaEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMMediaEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the media event.eventAn
NXMMediaEventobject. -
Received a DTMF event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveDTMFEvent:(nonnull NXMDTMFEvent *)event;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMDTMFEvent)Parameters
conversationA
NXMConversationobject, the conversation which received the DTMF event.eventAn
NXMDTMFEventobject. -
Received a RTC Transfer event.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation didReceiveLegTransferEvent:(nonnull NXMLegTransferEvent *)event newConversation:(nonnull NXMConversation *)newConversation;Swift
optional func conversation(_ conversation: NXMConversation, didReceive event: NXMLegTransferEvent, newConversation: NXMConversation)Parameters
conversationA
NXMConversationobject, the conversation which call was transferred from.eventA
NXMLegTransferEventobject, the details of previous and current conversation from the transfer eventnewConversationA
NXMConversationobject, the conversation to which the call was transferred to. -
Received a media connection state changed notification.
Declaration
Objective-C
- (void)conversation:(nonnull NXMConversation *)conversation onMediaConnectionStateChange:(NXMMediaConnectionStatus)state legId:(nonnull NSString *)legId;Swift
optional func conversation(_ conversation: NXMConversation, onMediaConnectionStateChange state: NXMMediaConnectionStatus, legId: String)Parameters
conversationA
NXMConversationobject, the conversation which received the media connection state changed notification.stateThe new Media state.
legIdThe leg id associated with the new media connection state received.
NXMConversationDelegate Protocol Reference