聊天相关的代理回调
didReceivedHistoryMessages收到历史消息
- (void)room:(BRTMRoom *)room didReceivedHistoryMessages:(nullable NSArray<BJLMessage *> *)historyMessages;
参数
返回
didReceiveMessages收到的消息
- (void)room:(BRTMRoom *)room didReceiveMessages:(NSArray<BJLMessage *> *)messages;
chatDelegate聊天相关的代理
@property (nonatomic, weak) id <BRTMChatDelegate> chatDelegate;
sendMessage发送文字消息
- (BRTMError *)sendMessage:(NSString *)message;
sendMessage指定频道,发送文字消息
- (BRTMError *)sendMessage:(NSString *)message toChannel:(nullable NSString *)channel;
sendMessage指定对象,发送文字消息
- (BRTMError *)sendMessage:(NSString *)message toUser:(nullable BJLUser *)user;
iOS
1 BRTMChatDelegate
1.1 BRTMChatDelegate接口
聊天相关的代理回调
1.2 BRTMChatDelegate接口函数定义
didReceivedHistoryMessages
收到历史消息
参数
返回
didReceiveMessages
收到的消息
参数
返回
2 BRTMChatManager
2.1 BRTMChatManager类成员
chatDelegate
聊天相关的代理
2.2 BRTMChatManager函数
2.3 BRTMChatManager类函数定义
sendMessage
发送文字消息
参数
返回
sendMessage
指定频道,发送文字消息
参数
返回
sendMessage
指定对象,发送文字消息
参数
返回