IrisRtcChatSessionDelegate Protocol Reference
| Conforms to | IrisRtcJingleSessionDelegate |
|---|---|
| Declared in | IrisRtcChatSession.h |
Overview
The IrisRtcChatSessionDelegate protocol defines the optional methods implemented by
delegates of the IrisRtcSession class.
The protocol needs to be conform to get the chat messages from the remote participant
– onSessionParticipantMessage:participantId:roomId:traceId:
required method
This method is called when the remote stream is added to peerconnection.
- (void)onSessionParticipantMessage:(IrisChatMessage *)message participantId:(NSString *)participantId roomId:(NSString *)roomId traceId:(NSString *)traceIdParameters
message |
Chat message string |
|---|---|
participantId |
Participant Id sending the chat message |
roomId |
Room Identifier for the allocated chat room for the participants |
traceId |
trace Id. |
Discussion
This method is called when the remote stream is added to peerconnection.
Declared In
IrisRtcChatSession.h
– onChatMessageSuccess:roomId:traceId:
required method
This method is called as an acknowledggment of chat message sent to participant.
- (void)onChatMessageSuccess:(IrisChatMessage *)message roomId:(NSString *)roomId traceId:(NSString *)traceIdParameters
message |
ChatAck message string |
|---|---|
roomId |
Room Identifier for the allocated chat room for the participants |
traceId |
trace Id. |
Discussion
This method is called as an acknowledggment of chat message sent to participant.
Declared In
IrisRtcChatSession.h
– onChatMessageError:withAdditionalInfo:roomId:traceId:
required method
This method is called as when chat message is not sent to participant.
- (void)onChatMessageError:(NSString *)messageId withAdditionalInfo:(NSDictionary *)info roomId:(NSString *)roomId traceId:(NSString *)traceIdParameters
messageId |
messageid of chat message |
|---|---|
info |
additional info about error. |
roomId |
Room Identifier for the allocated chat room for the participants |
traceId |
trace Id. |
Discussion
This method is called as when chat message is not sent to participant.
Declared In
IrisRtcChatSession.h
– onChatMessageState:participantId:roomId:traceId:
required method
This method is used for seding chat message state .
- (void)onChatMessageState:(IrisChatState)state participantId:(NSString *)participantId roomId:(NSString *)roomId traceId:(NSString *)traceIdParameters
state |
chat state |
|---|---|
participantId |
Participant Id sending the chat message |
roomId |
Room Identifier for the allocated chat room for the participants |
traceId |
trace Id. |
Discussion
This method is used for seding chat message state .
Declared In
IrisRtcChatSession.h