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
conversation
A
NXMConversation
object, the conversation received.error
An 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
conversation
A
NXMConversation
object, the conversation which received the custom event.event
An
NXMCustomEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the text event.event
An
NXMTextEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the image event.event
An
NXMImageEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the message event.event
An
NXMMessageEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the message status event.event
An
NXMMessageStatusEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the typing event.event
An
NXMTextTypingEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the member event.event
An
NXMMemberEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the leg status event.event
An
NXMLegStatusEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the member message status event.event
An
NXMMemberMessageStatusEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the media event.event
An
NXMMediaEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which received the DTMF event.event
An
NXMDTMFEvent
object. -
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
conversation
A
NXMConversation
object, the conversation which call was transferred from.event
A
NXMLegTransferEvent
object, the details of previous and current conversation from the transfer eventnewConversation
A
NXMConversation
object, 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
conversation
A
NXMConversation
object, the conversation which received the media connection state changed notification.state
The new Media state.
legId
The leg id associated with the new media connection state received.