页面事件监听
监听会话列表页面事件
您可以设置会话列表操作监听,实现自定义需求。会话列表 RCChatListViewController 的监听事件在代理 RCChatListViewDelegate 、RCChatListViewDataSource、RCChatListViewModelDelegate中,重写代理方法可以自定义处理
会话列表视图事件回调
RCChatListViewDelegate 包含 cell 即将加载、Cell 加载完成、搜索框点击、会话选中与取消选中、加载更多会话的回调,在下面方法中处理完自定义需求后,需要还需要 SDK 的默认处理,可以通过 super 调用内置的处理。
列表中的 Cell 将要加载
Objective C
/// 列表中的 Cell 将要加载
/// - Parameters:
/// - listView: 列表页面
/// - chatModel: 会话对象
- (void)listView:(RCChatListView *)listView willLoadCell:(UITableViewCell *)cell
forChatModel:(RCChatModel *)chatModel;
列表中的 Cell 加载完成
Objective C
/// 列表中的 Cell 加载完成
/// - Parameters:
/// - listView: 列表页面
/// - chatModel: 会话消息对象
- (void)listView:(RCChatListView *)listView didLoadCell:(UITableViewCell *)cell
forChatModel:(RCChatModel *)chatModel;