Skip to content

Instantly share code, notes, and snippets.

@AlexPrestonSB
Last active August 7, 2020 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexPrestonSB/dd7b141d71f2d1a0a374528a6521780d to your computer and use it in GitHub Desktop.
Save AlexPrestonSB/dd7b141d71f2d1a0a374528a6521780d to your computer and use it in GitHub Desktop.
Receiving Typing Indicators.
//Sender Side
groupChannel.startTyping(); //Sender Side
groupChannel.endTyping();
...
//Receiver side
// To listen to an update from all the other channel members' client apps, implement the 'onTypingStatusUpdated()' with things to do when notified.
SendBird.addChannelHandler(UNIQUE_HANDLER_ID, new SendBird.ChannelHandler() {
@Override
public void onTypingStatusUpdated(GroupChannel groupChannel) {
if (currentGroupChannel.getUrl().equals(groupChannel.getUrl())) {
List<User> members = groupChannel.getTypingMembers();
// Refresh typing status of members within the channel.
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment