接口 IRecyclerViewHandle
-
- 所有已知实现类:
EaseChatMessageListLayout
public interface IRecyclerViewHandle
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidcanUseDefaultRefresh(boolean canUseRefresh)Whether to use the default refreshvoidhighlightItem(int position)Highlight item to attract user.voidisNeedScrollToBottomWhenViewChange(boolean isNeedToScrollBottom)Whether to scroll to the bottom when the RecyclerView's height changesvoidmoveToPosition(int position)Move to the specified positionvoidmoveToTarget(io.agora.chat.ChatMessage message)Move to the specified message if conversation has.voidrefreshMessage(io.agora.chat.ChatMessage message)Refresh single messagevoidrefreshMessage(java.lang.String messageId)Refresh single message by id.voidrefreshMessages()Refresh messagesvoidrefreshToLatest()Refresh and move to the latest piece of datavoidremoveMessage(io.agora.chat.ChatMessage message)Delete single messagevoidsetRefreshing(boolean refreshing)Notify the widget that refresh state has changed.
-
-
-
方法详细资料
-
canUseDefaultRefresh
void canUseDefaultRefresh(boolean canUseRefresh)
Whether to use the default refresh- 参数:
canUseRefresh-
-
refreshMessages
void refreshMessages()
Refresh messages
-
refreshToLatest
void refreshToLatest()
Refresh and move to the latest piece of data
-
refreshMessage
void refreshMessage(io.agora.chat.ChatMessage message)
Refresh single message- 参数:
message-
-
refreshMessage
void refreshMessage(java.lang.String messageId)
Refresh single message by id.- 参数:
messageId-
-
removeMessage
void removeMessage(io.agora.chat.ChatMessage message)
Delete single message- 参数:
message-
-
moveToPosition
void moveToPosition(int position)
Move to the specified position- 参数:
position-
-
moveToTarget
void moveToTarget(io.agora.chat.ChatMessage message)
Move to the specified message if conversation has. It is subject to the maximum range of search history messages.- 参数:
message-
-
highlightItem
void highlightItem(int position)
Highlight item to attract user.- 参数:
position-
-
setRefreshing
void setRefreshing(boolean refreshing)
Notify the widget that refresh state has changed.- 参数:
refreshing-
-
isNeedScrollToBottomWhenViewChange
void isNeedScrollToBottomWhenViewChange(boolean isNeedToScrollBottom)
Whether to scroll to the bottom when the RecyclerView's height changes- 参数:
isNeedToScrollBottom-
-
-