public class CSConversationUIRenderer extends java.lang.Object implements IConversationUIRenderer
Constructor and Description |
---|
CSConversationUIRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
handlePageEvent(PageEvent pageEvent)
会话页面渲染事件回调。
|
void |
init(ConversationFragment fragment,
RongExtension rongExtension,
Conversation.ConversationType conversationType,
java.lang.String targetId)
进入会话页面后,初始化各 UI 渲染器。
|
boolean |
onBackPressed()
按返回键时的回调
|
void |
onDestroy()
退出会话页面时回调。
|
void |
onSelectCustomerServiceGroup(java.util.List<CSGroupItem> groupList)
如果客服后台有分组,会弹出此对话框选择分组
可以通过自定义类继承自 ConversationFragment 并重写此方法来自定义弹窗
|
public void init(ConversationFragment fragment, RongExtension rongExtension, Conversation.ConversationType conversationType, java.lang.String targetId)
IConversationUIRenderer
init
in interface IConversationUIRenderer
fragment
- 会话 fragmentrongExtension
- 会话扩展栏conversationType
- 会话类型targetId
- 会话 idpublic boolean handlePageEvent(PageEvent pageEvent)
IConversationUIRenderer
handlePageEvent
in interface IConversationUIRenderer
pageEvent
- 渲染事件public void onSelectCustomerServiceGroup(java.util.List<CSGroupItem> groupList)
public boolean onBackPressed()
IConversationUIRenderer
onBackPressed
in interface IConversationUIRenderer
public void onDestroy()
IConversationUIRenderer
onDestroy
in interface IConversationUIRenderer