PDUIChatController

Inherits from: UIViewController

Overview

客服聊天页面控制器类,实现客服会话过程中的主要功能

Propertys

  • 初始化配置

@property (nonatomic, strong) PDUIInitInfo* uiInitInfo;

  • 机器人对象

@property (nonatomic, strong) PDBotLibClient* botClient;

  • 聊天列表视图

@property (nonatomic, strong) UITableView* messageTableView;

Methods

  • 重新加载消息列表
- (void)reloadMessageList;
  • 注册消息Cell类
- (void)registerCellClass:(Class)cellClass forMessageType:(PDMessageContentType)type;
参数 类型 说明
cellClass Class 消息Cell类,必须是PDUIMessageBaseCell的子类
type PDMessageContentType 消息类型
  • 添加消息数据到消息列表
- (void)appendMessageList:(PDMessage*)message;
参数 类型 说明
message PDMessage* 消息数据

results matching ""

    No results matching ""