Bangwo8SdkManager.getInstance().requestService("用户名", "服务商Id", new Bangwo8ResponseListener() { @Override public void requestServiceSuccess(String chatWithName) { //请求服务成功 } @Override public void requestServiceFailed(int queueLocation,String reason) { //请求服务失败 } });
1、客户结束会话
Bangwo8SdkManager.getInstance().finishSession(String chatWithName,String loginUser);
2、添加客服结束会话的监听器
Bangwo8SdkManager.getInstance().addBangwo8IsFinishServiceListener(new Bangwo8IsFinishServiceListener() { @Override public void finishService() { //客服结束了本次会话 } });
说明:更多使用细节详见demo github地址。