Package 

Interface GlobalState

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit clearState() 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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.

      • getMuted

         abstract StateFlow<List<Mute>> getMuted()

        list of users that you've muted.

      • getChannelMutes

         abstract StateFlow<List<ChannelMute>> getChannelMutes()

        List of channels you've muted.

      • getBanned

         abstract StateFlow<Boolean> getBanned()

        if the current user is banned or not.

      • 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.