| Package | Description |
|---|---|
| com.alibaba.mobileim.conversation |
| Modifier and Type | Method and Description |
|---|---|
abstract YWConversation |
YWConversationCreater.createConversation(EServiceContact setting)
创建客服会话
|
abstract YWConversation |
YWConversationCreater.createConversationIfNotExist(IYWContact targetContact)
如果当前没有与某个聊天对象的会话记录,则创建一个,如果有将当前的聊天会话记录返回
若targetContact中的appKey错误,则该方法返回null,因此用户使用此方法时,一定要判断返回值是否为空,以免出现空指针引用
该方法必须在UI主线程调用
|
abstract YWConversation |
YWConversationCreater.createConversationIfNotExist(java.lang.String targetUserId)
如果当前没有与某个聊天对象的会话记录,则创建一个,如果有将当前的聊天会话记录返回
该方法必须在UI主线程调用
|
abstract YWConversation |
YWConversationCreater.createCustomConversation(java.lang.String id,
YWConversationType type)
创建自定义会话
|
abstract YWConversation |
YWConversationCreater.createTribeConversation(long tribeId)
创建群会话
|
YWConversation |
YWConversationManager.getConversation(EServiceContact setting)
与某个聊天对象的会话记录
|
YWConversation |
YWConversationManager.getConversation(long tribeId)
Deprecated.
|
YWConversation |
YWConversationManager.getConversation(java.lang.String userId)
Deprecated.
|
YWConversation |
YWConversationManager.getConversationByConversationId(java.lang.String conversationId)
获取某个会话记录
该方法必须在UI主线程调用
|
YWConversation |
YWConversationManager.getConversationById(java.lang.String conversationId)
Deprecated.
|
YWConversation |
YWConversationManager.getConversationByUserId(java.lang.String userId)
获取与某个聊天对象的会话记录
该方法必须在UI主线程调用
|
YWConversation |
YWConversationManager.getConversationByUserId(java.lang.String userId,
java.lang.String targetAppKey)
获取与某个聊天对象的会话记录
该方法必须在UI主线程调用
|
YWConversation |
YWConversationManager.getCustomConversation(java.lang.String conversationId)
获取自定义会话
|
YWConversation |
YWConversationManager.getCustomConversationByConversationId(java.lang.String conversationId)
根据会话Id查询自定义会话
|
YWConversation |
YWConversationManager.getCustomViewConversationByConversationId(java.lang.String conversationId)
根据会话Id查询自定义View的会话
|
YWConversation |
YWConversationManager.getTribeConversation(long tribeId)
根据群ID,获取群会话
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<YWConversation> |
YWConversationManager.getConversationList()
获取当前登录用户所有的聊天会话,该列表只做只做只读用途,请勿自行往集合中增删东西,请通过云旺提供的api进行增删
该方法必须在UI主线程调用
|
| Modifier and Type | Method and Description |
|---|---|
void |
YWConversationManager.checkHasUnreadAtMsgs(Context context,
YWConversation conversation,
IWxCallback callback)
检查是否有未读的@消息
|
void |
YWConversationManager.deleteConversation(YWConversation conversation)
删除某一条会话记录,并清空消息
该方法必须在UI主线程调用
|
void |
YWConversationManager.markReaded(YWConversation conversation)
将所有的消息记录置为已读
该方法必须在UI主线程调用
|
void |
YWConversationManager.removeTopConversation(YWConversation conversation)
将当前会话取消置顶
该方法必须在UI主线程调用
|
void |
YWConversationManager.setTopConversation(YWConversation conversation)
将当前会话置顶
该方法必须在UI主线程调用
|
| Modifier and Type | Method and Description |
|---|---|
void |
YWConversationManager.getAtMsgList(Context context,
java.util.List<YWConversation> conversations,
int count,
IWxCallback callback)
获取每个会话的@消息列表
|