onReceived

public abstract void onReceived(ChannelViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)

Callback when a message is received.

Parameters

viewModel

ChannelViewModel

message

the message

left

number of remaining unfetched messages

hasPackage

whether there are remaining message packages

offline

whether the message is offline