public interface CommunicationServiceCallbacks
Modifier and Type | Method and Description |
---|---|
void |
newChatMessage(ChatMessage message)
This method execute automatically when receive a new chat message.
|
void |
onInviteAGroup(GroupChat chat)
This method execute automatically when invite a group chat.
|
void |
onJoinGroup(GroupChat chat)
This method execute automatically when join a group chat.
|
void |
onLeaveGroup(GroupChat chat)
This method execute automatically when leave a group chat.
|
void |
startTyping(String userJid)
This method execute automatically when user start typing in specific chat
|
void |
stopTyping(String userJid)
This method execute automatically when user stop typing in specific chat
|
void newChatMessage(ChatMessage message)
message
- object that contains all message information.void startTyping(String userJid)
userJid
- user that start typingvoid stopTyping(String userJid)
userJid
- user that stop typingvoid onInviteAGroup(GroupChat chat)
chat
- that user is invited.void onJoinGroup(GroupChat chat)
chat
- that user is joined.void onLeaveGroup(GroupChat chat)
chat
- that user is leaved.