public class IMConversationListOperation
extends BaseAdvice
Constructor and Description |
---|
IMConversationListOperation(Pointcut pointcut) |
Modifier and Type | Method and Description |
---|---|
int |
getConversationDefaultHead(Fragment fragment,
YWConversation conversation)
返回自定义会话的默认头像 如返回 本地的 R.drawable.test
|
java.lang.String |
getConversationHeadPath(Fragment fragment,
YWConversation conversation)
返回自定义会话的头像url
|
Intent |
getConversationItemClickIntent(Fragment fragment,
YWConversation conversation)
Deprecated.
|
java.lang.String |
getConversationName(Fragment fragment,
YWConversation conversation)
返回自定义会话的名称
|
java.util.List<java.lang.String> |
getLongClickMenuList(Fragment fragment,
YWConversation conversation)
Deprecated.
|
void |
onConversationItemClick(Fragment fragment,
YWConversation conversation)
Deprecated.
|
boolean |
onConversationItemLongClick(Fragment fragment,
YWConversation conversation)
自定义长按会话事件
|
void |
onConversationItemLongClick(Fragment fragment,
YWConversation conversation,
java.lang.String clickMenuItem)
Deprecated.
|
boolean |
onItemClick(Fragment fragment,
YWConversation conversation)
自定义会话点击事件
|
public IMConversationListOperation(Pointcut pointcut)
public java.lang.String getConversationHeadPath(Fragment fragment, YWConversation conversation)
fragment
- 会话列表页面fragmentconversation
- 会话 可以通过 conversation.getConversationId拿到用户设置的会话id以根据不同的逻辑显示不同的头像public int getConversationDefaultHead(Fragment fragment, YWConversation conversation)
fragment
- 会话列表页面fragmentconversation
- 自定义会话对象public java.lang.String getConversationName(Fragment fragment, YWConversation conversation)
fragment
- 会话列表页面fragmentconversation
- 自定义会话对象public boolean onItemClick(Fragment fragment, YWConversation conversation)
fragment
- 会话列表fragmentconversation
- 当前点击的会话对象public boolean onConversationItemLongClick(Fragment fragment, YWConversation conversation)
fragment
- 会话列表fragmentconversation
- 当前点击的会话对象public void onConversationItemClick(Fragment fragment, YWConversation conversation)
onItemClick(Fragment, YWConversation)
}fragment
- conversation
- public java.util.List<java.lang.String> getLongClickMenuList(Fragment fragment, YWConversation conversation)
onConversationItemLongClick(Fragment, YWConversation)
public void onConversationItemLongClick(Fragment fragment, YWConversation conversation, java.lang.String clickMenuItem)
onConversationItemLongClick(Fragment, YWConversation)
fragment
- conversation
- clickMenuItem
- public Intent getConversationItemClickIntent(Fragment fragment, YWConversation conversation)
onConversationItemLongClick(Fragment, YWConversation)
fragment
- conversation
-