Package 

Interface GlobalState

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

      • getGroupedUnreadChannels

         abstract StateFlow<Map<String, Integer>> getGroupedUnreadChannels()

        Per-group unread channel counts for the current user. The map keys are group identifiers provided by the backend (e.g. "direct", "support") and values are unread channel counts. Empty map when no grouped counts are available.

      • 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 Channel.cid to access events for a particular channel.

      • getChannelDraftMessages

         abstract StateFlow<Map<String, DraftMessage>> getChannelDraftMessages()

        Map of draft messages for all channels. Use Channel.cid to access draft message for a particular channel.

      • getThreadDraftMessages

         abstract StateFlow<Map<String, DraftMessage>> getThreadDraftMessages()

        Map of draft messages for all threads. Use the parentId to access draft message for a particular thread.

      • getActiveLiveLocations

         abstract StateFlow<List<Location>> getActiveLiveLocations()

        Active live locations that are being shared in the app.