# StateContext

public class StateContext

## Constructors

StateContext
Link copied to clipboard
public void StateContext(int state)

## Properties

CHATROOM_NORMAL_STATE
Link copied to clipboard
public final static int CHATROOM_NORMAL_STATE
HISTORY_STATE
Link copied to clipboard
public final static int HISTORY_STATE
NORMAL_STATE
Link copied to clipboard
public final static int NORMAL_STATE

## Functions

init
Link copied to clipboard
public void init(MessageViewModel messageViewModel, Bundle bundle)
isHistoryState
Link copied to clipboard
public boolean isHistoryState(MessageViewModel viewModel)
isNormalState
Link copied to clipboard
public boolean isNormalState(MessageViewModel viewModel)
newMentionMessageBarClick
Link copied to clipboard
public void newMentionMessageBarClick(MessageViewModel viewModel)
onClearMessage
Link copied to clipboard
public void onClearMessage(MessageViewModel viewModel)
onHistoryBarClick
Link copied to clipboard
public void onHistoryBarClick(MessageViewModel viewModel)
onLoadMore
Link copied to clipboard
public void onLoadMore(MessageViewModel viewModel)
onNewMessageBarClick
Link copied to clipboard
public void onNewMessageBarClick(MessageViewModel viewModel)
onReceived
Link copied to clipboard
public void onReceived(MessageViewModel messageViewModel, UiMessage message, int left, boolean hasPackage, boolean offline)
onRefresh
Link copied to clipboard
public void onRefresh(MessageViewModel viewModel)
onScrollToBottom
Link copied to clipboard
public void onScrollToBottom(MessageViewModel viewModel)
setCurrentState
Link copied to clipboard
public void setCurrentState(IMessageState state)