-
- All Implemented Interfaces:
public interface GlobalStateGlobal state of StatePlugin.
-
-
Method Summary
Modifier and Type Method Description abstract UnitclearState()Clears the state of GlobalState. abstract StateFlow<Integer>getTotalUnreadCount()The total unread message count for the current user. abstract StateFlow<Integer>getChannelUnreadCount()the number of unread channels for the current user. abstract StateFlow<List<Mute>>getMuted()list of users that you've muted. abstract StateFlow<List<ChannelMute>>getChannelMutes()List of channels you've muted. abstract StateFlow<Boolean>getBanned()if the current user is banned or not. abstract StateFlow<Map<String, TypingEvent>>getTypingChannels()Map of typing users in all active channel. -
-
Method Detail
-
clearState
abstract Unit clearState()
Clears the state of GlobalState.
-
getTotalUnreadCount
abstract StateFlow<Integer> getTotalUnreadCount()
The total unread message count for the current user. Depending on your app you'll want to show this or the channelUnreadCount.
-
getChannelUnreadCount
abstract StateFlow<Integer> getChannelUnreadCount()
the number of unread channels for the current user.
-
getChannelMutes
abstract StateFlow<List<ChannelMute>> getChannelMutes()
List of channels you've muted.
-
getTypingChannels
abstract StateFlow<Map<String, TypingEvent>> getTypingChannels()
Map of typing users in all active channel. Use io.getstream.chat.android.client.models.Channel.cid to access events for a particular channel.
-
-
-
-