# IMessageState

public interface IMessageState

处理，消息列表，历史消息展示条，新消息展示条相关逻辑

## Functions

init
Link copied to clipboard
public abstract void init(MessageViewModel viewModel, Bundle bundle)
处理历史消息
isNormalState
Link copied to clipboard
public abstract boolean isNormalState(MessageViewModel viewModel)
是否是正常会话状态
onClearMessage
Link copied to clipboard
public abstract void onClearMessage(MessageViewModel viewModel)
清除消息
onHistoryBarClick
Link copied to clipboard
public abstract void onHistoryBarClick(MessageViewModel viewModel)
历史消息 bar 点击事件
onLoadMore
Link copied to clipboard
public abstract void onLoadMore(MessageViewModel viewModel)
处理上拉加载更多
onNewMentionMessageBarClick
Link copied to clipboard
public abstract void onNewMentionMessageBarClick(MessageViewModel viewModel)
新的 `@` 消息点击
onNewMessageBarClick
Link copied to clipboard
public abstract void onNewMessageBarClick(MessageViewModel viewModel)
新消息按钮点击
onReceived
Link copied to clipboard
public abstract void onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
收到消息回调
onRefresh
Link copied to clipboard
public abstract void onRefresh(MessageViewModel viewModel)
处理下拉刷新
onScrollToBottom
Link copied to clipboard
public abstract void onScrollToBottom(MessageViewModel viewModel)
滑动到底部