public interface IChatLayout extends ILayout
ChatLayout 提供了消息的展示与发送等功能,界面布局从上到下分为四个部分: 标题区每个区域提供了多样的方法以供定制使用。TitleBarLayout, 提醒区NoticeLayout, 消息区MessageLayout, 输入区InputLayout,
| 限定符和类型 | 方法和说明 |
|---|---|
void |
exitChat()
退出聊天,释放相关资源(一般在 activity finish 时调用)
|
ChatInfo |
getChatInfo()
获取当前的会话信息
|
InputLayout |
getInputLayout()
获取聊天窗口 Input 区域 Layout
|
MessageLayout |
getMessageLayout()
获取聊天窗口 Message 区域 Layout
|
NoticeLayout |
getNoticeLayout()
获取聊天窗口 Notice 区域 Layout
|
void |
initDefault()
初始化参数
|
void |
loadMessages()
加载聊天消息
|
void |
sendMessage(MessageInfo msg,
boolean retry)
发送消息
|
void |
setChatInfo(ChatInfo chatInfo)
设置当前的会话信息
|
getTitleBar, setParentLayoutInputLayout getInputLayout()
MessageLayout getMessageLayout()
NoticeLayout getNoticeLayout()
ChatInfo getChatInfo()
void setChatInfo(ChatInfo chatInfo)
chatInfo - void exitChat()
void initDefault()
void loadMessages()
void sendMessage(MessageInfo msg, boolean retry)
msg - 消息retry - 是否重试