public interface GroupHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onGroupConnected(Group group)
The callback function that process event of being connected to group.
|
void |
onGroupMessage(Group group,
java.lang.String from,
byte[] message)
The callback function that process the group messages.
|
void |
onGroupTitle(Group group,
java.lang.String from,
java.lang.String title)
The callback function that process the group title change event.
|
void |
onPeerListChanged(Group group)
The callback function that process the group list change event.
|
void |
onPeerName(Group group,
java.lang.String peerId,
java.lang.String peerName)
The callback function that process the group peer's name change event.
|
void onGroupConnected(Group group)
group - The target group connectedvoid onGroupMessage(Group group, java.lang.String from, byte[] message)
group - The group that received messagefrom - The user id who send the messagemessage - The message contentvoid onGroupTitle(Group group, java.lang.String from, java.lang.String title)
group - The group id of its title changedfrom - The peer Id who changed title nametitle - The updated title namevoid onPeerName(Group group, java.lang.String peerId, java.lang.String peerName)
group - The target grouppeerId - The peer Id who changed its namepeerName - The updated peer namevoid onPeerListChanged(Group group)
group - The target group that changed it's peer list