groupChannel.startTyping();
groupChannel.endTyping();
// ...
// To listen to an update from all the other channel members' client apps,
// implement onTypingStatusUpdated() with things to do when notified.
SendbirdChat.addChannelHandler(
UNIQUE_HANDLER_ID,
object : GroupChannelHandler() {
override fun onTypingStatusUpdated(channel: GroupChannel) {
if (currentGroupChannel.url == channel.url) {
val members = channel.typingUsers
// Refresh typing status of members within the channel.
// ...
}
}
}
)