mitter.registerOnPushMessageReceivedListener(new Mitter.OnPushMessageReceivedCallback() {
public void onNewMessage(
//Called when a new message has arrived for the user
public void onNewChannel(Channel channel) {
//Called when a new channel is created where the user is a participant
public void onNewMessageTimelineEvent(
TimelineEvent timelineEvent
//Called when there's a new timeline event for a message
public void onNewChannelTimelineEvent(
TimelineEvent timelineEvent
//Called when there's a new timeline event for a channel
public void onParticipationChangedEvent(
String channelId, String participantId,
ParticipationStatus participationStatus,
ParticipationStatus participationStatus1
//Called when the user has joined a new channel or has been removed from one
public void onChannelStreamData(
ContextFreeMessage contextFreeMessage
//Called when there's some streaming data such as typing indicator