public class CustomServiceBusinessProcessor extends BaseBusinessProcessor implements android.os.Handler.Callback
Constructor and Description |
---|
CustomServiceBusinessProcessor() |
Modifier and Type | Method and Description |
---|---|
CustomServiceConfig |
getCustomServiceConfig() |
boolean |
handleMessage(android.os.Message msg) |
void |
init(MessageViewModel messageViewModel,
android.os.Bundle bundle)
第一次初始化,绑定事件等
|
boolean |
onBackPressed(MessageViewModel viewModel) |
void |
onDestroy(MessageViewModel viewModel) |
boolean |
onReceived(MessageViewModel viewModel,
UiMessage message,
int left,
boolean hasPackage,
boolean offline)
接收消息回调此接口
|
void |
setCustomServiceEvaluateTime(long time)
进入客服会话,弹出评价菜单超时时间(单位:秒) 设置为 0 时,任何时候离开客服会话时,都会弹出评价菜单.
|
void |
setStopCSWhenQuit(boolean value)
设置退出会话页面时是否退出客服
|
getHistoryMessageCount, onConnectStatusChange, onExistUnreadMessage, onLoadMessage, onMessageItemClick, onMessageItemLongClick, onMessageReceiptRequest, onReceivedCmd, onResume, onUserPortraitClick, onUserPortraitLongClick
public boolean onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
IConversationBusinessProcessor
onReceived
in interface IConversationBusinessProcessor
onReceived
in class BaseBusinessProcessor
public void init(MessageViewModel messageViewModel, android.os.Bundle bundle)
IConversationBusinessProcessor
init
in interface IConversationBusinessProcessor
messageViewModel
- 消息处理类bundle
- 上一个页面传递过来的 bundlepublic boolean onBackPressed(MessageViewModel viewModel)
onBackPressed
in interface IConversationBusinessProcessor
onBackPressed
in class BaseBusinessProcessor
public void onDestroy(MessageViewModel viewModel)
onDestroy
in interface IConversationBusinessProcessor
onDestroy
in class BaseBusinessProcessor
public void setCustomServiceEvaluateTime(long time)
time
- 超时时间public void setStopCSWhenQuit(boolean value)
value
- 是否关闭客服。public boolean handleMessage(android.os.Message msg)
handleMessage
in interface android.os.Handler.Callback
public CustomServiceConfig getCustomServiceConfig()