Package | Description |
---|---|
com.alibaba.mobileim.aop.custom | |
com.alibaba.mobileim.conversation |
Modifier and Type | Method and Description |
---|---|
int |
IMConversationListOperation.getConversationDefaultHead(Fragment fragment,
YWConversation conversation)
返回自定义会话的默认头像 如返回 本地的 R.drawable.test
|
java.lang.String |
IMConversationListOperation.getConversationHeadPath(Fragment fragment,
YWConversation conversation)
返回自定义会话的头像url
|
Intent |
IMConversationListOperation.getConversationItemClickIntent(Fragment fragment,
YWConversation conversation)
Deprecated.
|
java.lang.String |
IMConversationListOperation.getConversationName(Fragment fragment,
YWConversation conversation)
返回自定义会话的名称
|
View |
IMConversationListUI.getCustomItemView(Fragment fragment,
YWConversation conversation,
View convertView,
int viewType,
YWContactHeadLoadHelper headLoadHelper,
ViewGroup parent)
根据viewType获取自定义view
|
int |
IMConversationListUI.getCustomItemViewType(YWConversation conversation)
当前消息对应的自定义view类型
|
View |
IMChattingPageOperateion.getCustomMessageViewWithoutHead(Fragment fragment,
YWMessage message,
YWConversation conversation)
Deprecated.
|
Intent |
IMNotification.getCustomNotificationIntent(Intent intent,
YWConversation conversation,
YWMessage message,
int totalUnReadCount) |
Intent |
IMNotification.getCustomNotificationIntent(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
收到消息时的自定义通知栏点击Intent
|
View |
IMChattingPageUI.getCustomTitleView(Fragment fragment,
Context context,
LayoutInflater inflater,
YWConversation conversation)
聊天窗口的自定义标题 的view
|
View |
IMChattingPageOperateion.getCustomUrlView(Fragment fragment,
YWMessage message,
java.lang.String url,
YWConversation ywConversation)
获取url对应的自定义view,当openIM发送或者接收到url消息时会回调该方法获取该url的自定义view。若开发者实现了该方法并且返回了一个view对象,openIM将会使用该view展示对应的url消息。
|
View |
IMConversationListUI.getCustomView(Context context,
YWConversation conversation,
View convertView,
ViewGroup parent)
返回自定义会话节点view
|
int |
IMChattingPageOperateion.getFastReplyResId(YWConversation conversation)
NOT FOR OPENIM
|
GoodsInfo |
IMChattingPageOperateion.getGoodsInfoFromUrl(Fragment fragment,
YWMessage message,
java.lang.String url,
YWConversation ywConversation)
获取url对应的商品详情信息,当openIM发送或者接收到url消息时会首先调用
IMChattingPageOperateion.getCustomUrlView(Fragment, YWMessage, String, YWConversation) ,
若getCustomUrlView()返回null,才会回调调用该方法获取商品详情,若getCustomUrlView()返回非null的view对象,则直接用此view展示url消息,不再回调该方法。因此,如果希望该方法被调用,
请确保IMChattingPageOperateion.getCustomUrlView(Fragment, YWMessage, String, YWConversation) 返回null。 |
int |
IMChattingPageUI.getLeftCustomMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
IMChattingPageUI.getLeftGeoMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
java.util.List<java.lang.String> |
IMConversationListOperation.getLongClickMenuList(Fragment fragment,
YWConversation conversation)
Deprecated.
|
int |
IMChattingPageUI.getMsgBackgroundResId(YWConversation conversation,
YWMessage message,
boolean self)
设置消息气泡背景图,需要.9图
|
java.lang.String |
IMNotification.getNotificationTips(YWConversation conversation,
YWMessage message,
int totalUnReadCount)
收到消息时,自定义消息通知栏的提示文案
|
int |
IMChattingPageOperateion.getRecordResId(YWConversation conversation)
NOT FOR OPENIM
|
java.util.List<ReplyBarItem> |
IMChattingPageOperateion.getReplybarItems(Fragment pointcut,
YWConversation ywConversation)
获取用户定制的聊天窗口回复栏内的item列表
|
int |
IMChattingPageUI.getRightCustomMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
int |
IMChattingPageUI.getRightGeoMsgBackgroundResId(YWConversation conversation)
Deprecated.
|
java.lang.String |
IMChattingPageOperateion.getTipsForSendingMsgToBlackContact(Fragment fragment,
YWConversation conversation)
聊天窗口一些通用的文案定制
|
int |
IMConversationListUI.getTribeConversationHead(Fragment fragment,
YWConversation conversation)
自定义群会话的头像
|
void |
IMChattingPageUI.init(Fragment f,
YWConversation conversation) |
java.lang.String |
IMChattingPageOperateion.messageToSendWhenOpenChatting(Fragment fragment,
YWConversation conversation)
当打开聊天窗口时,自动发送该字符串给对方
|
void |
IMChattingPageUI.modifyLeftItemParentViewAfterSetValue(YWMessage msg,
RelativeLayout leftItemParentView,
Fragment fragment,
YWConversation conversation)
getView方法内,返回View之前,对[聊天界面的左边消息item的View]做最后调整。
|
void |
IMChattingPageUI.modifyRightItemParentViewAfterSetValue(YWMessage msg,
RelativeLayout rightItemParentView,
Fragment fragment,
YWConversation conversation)
getView方法内,返回View之前,对[聊天界面的右边消息item的View]做最后调整。
|
boolean |
IMChattingPageUI.needHideTitleView(Fragment fragment,
YWConversation conversation)
是否隐藏聊天窗口标题栏
|
boolean |
IMNotification.needQuiet(YWConversation conversation,
YWMessage message)
是否开启免打扰模式,若开启免打扰模式则收到新消息时不发送通知栏提醒,只在会话列表页面显示未读数
|
boolean |
IMNotification.needSound(YWConversation conversation,
YWMessage message)
收到通知栏消息时是否有声音提醒
|
boolean |
IMNotification.needVibrator(YWConversation conversation,
YWMessage message)
收到通知栏消息时是否震动提醒
|
void |
IMChattingPageUI.onActivityCreated(Bundle savedInstanceState,
Fragment fragment,
YWConversation conversation) |
void |
IMConversationListOperation.onConversationItemClick(Fragment fragment,
YWConversation conversation)
Deprecated.
|
boolean |
IMConversationListOperation.onConversationItemLongClick(Fragment fragment,
YWConversation conversation)
自定义长按会话事件
|
void |
IMConversationListOperation.onConversationItemLongClick(Fragment fragment,
YWConversation conversation,
java.lang.String clickMenuItem)
Deprecated.
|
void |
IMChattingPageUI.onDestroy(Fragment fragment,
YWConversation conversation) |
boolean |
IMChattingPageOperateion.onFastReplyClick(Fragment pointcut,
YWConversation ywConversation)
NOT FOR OPENIM
|
boolean |
IMConversationListOperation.onItemClick(Fragment fragment,
YWConversation conversation)
自定义会话点击事件
|
boolean |
IMChattingPageOperateion.onRecordItemClick(Fragment pointcut,
YWConversation ywConversation)
NOT FOR OPENIM
|
void |
IMChattingPageOperateion.onReplyBarItemClick(Fragment pointcut,
ReplyBarItem item,
YWConversation ywConversation)
用户定制的聊天窗口回复栏中内的item点击事件
|
void |
IMChattingPageUI.onResume(Fragment fragment,
YWConversation conversation) |
boolean |
IMChattingPageOperateion.onUrlClick(Fragment fragment,
YWMessage message,
java.lang.String url,
YWConversation ywConversation)
单聊ui界面,点击url的事件拦截 返回true;表示自定义处理,返回false,由默认处理
|
boolean |
IMChattingPageOperateion.showDefaultBarItems(YWConversation conversation)
是否显示默认的Item,照片,相册
|
YWMessage |
IMChattingPageOperateion.ywMessageToSendWhenOpenChatting(Fragment fragment,
YWConversation conversation)
当打开聊天窗口时,自动发送该消息给对方
|
YWMessage |
IMChattingPageOperateion.ywMessageToSendWhenOpenChatting(Fragment fragment,
YWConversation conversation,
boolean isConversationFirstCreated)
当打开聊天窗口时,自动发送该消息给对方
|
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 |
IYWConversationService.getConversation(EServiceContact setting)
与某个聊天对象的会话记录
|
YWConversation |
IYWConversationService.getConversation(long tribeId)
Deprecated.
|
YWConversation |
IYWConversationService.getConversation(java.lang.String userId)
Deprecated.
|
YWConversation |
IYWConversationService.getConversationByConversationId(java.lang.String conversationId)
获取某个会话记录
该方法必须在UI主线程调用
|
YWConversation |
IYWConversationService.getConversationById(java.lang.String conversationId)
Deprecated.
|
YWConversation |
IYWConversationService.getConversationByUserId(java.lang.String userId)
获取与某个聊天对象的会话记录,仅限同域的联系人会话,跨域联系人的会话请参考
IYWConversationService.getConversationByUserId(java.lang.String)
该方法必须在UI主线程调用 |
YWConversation |
IYWConversationService.getConversationByUserId(java.lang.String userId,
java.lang.String targetAppKey)
获取与某个聊天对象的会话记录,支持跨域联系人的获得
该方法必须在UI主线程调用
|
YWConversation |
IYWConversationService.getCustomConversation(java.lang.String conversationId)
获取自定义会话
|
YWConversation |
IYWConversationService.getCustomConversationByConversationId(java.lang.String conversationId)
根据会话Id查询自定义会话
|
YWConversation |
IYWConversationService.getCustomViewConversationByConversationId(java.lang.String conversationId)
根据会话Id查询自定义View的会话
|
YWConversation |
IYWConversationService.getTribeConversation(long tribeId)
根据群ID,获取群会话
|
Modifier and Type | Method and Description |
---|---|
java.util.List<YWConversation> |
IYWConversationService.getConversationList()
获取当前登录用户所有的聊天会话,该列表只做只做只读用途,请勿自行往集合中增删东西,请通过云旺提供的api进行增删
该方法必须在UI主线程调用
|
Modifier and Type | Method and Description |
---|---|
void |
IYWConversationService.checkHasUnreadAtMsgs(Context context,
YWConversation conversation,
IWxCallback callback)
检查是否有未读的@消息
|
void |
IYWConversationService.deleteConversation(YWConversation conversation)
删除某一条会话记录,并清空消息
该方法必须在UI主线程调用
|
void |
IYWConversationService.markReaded(YWConversation conversation)
将所有的消息记录置为已读
该方法必须在UI主线程调用
|
void |
IYWConversationService.removeTopConversation(YWConversation conversation)
将当前会话取消置顶
该方法必须在UI主线程调用
|
void |
IYWConversationService.setTopConversation(YWConversation conversation)
将当前会话置顶
该方法必须在UI主线程调用
|
Modifier and Type | Method and Description |
---|---|
void |
IYWConversationService.getAtMsgList(Context context,
java.util.List<YWConversation> conversations,
int count,
IWxCallback callback)
获取每个会话的@消息列表
|