Class ChannelListDataHandler

  • All Implemented Interfaces:

    
    public class ChannelListDataHandler
    
                        

    Core data handler for the channel list

    Responsible for channel data fetching, filtering, sorting, deduplication, and UI model management. Implements OnPagedDataLoader to support load-more pagination.

    Data loading has two paths:

    • refresh — initial load or event-driven refresh, resets pagination (auto-coalesces rapid calls)
    • )>loadNext — paginated load-more
    Since:

    5.10.4

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static DataKey<List<BaseUiChannel>> KEY_CONVERSATION_LIST
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void refresh() Refreshes the channel list (resets pagination).
      void updateByChannel(BaseChannel channel) Updates a single channel (from event callback)
      BaseUiChannel findConversationFromList(ChannelType type, String channelId)
      void refreshConversationList()
      boolean isSupported(ChannelType type)
      void )>loadNext(OnDataChangeListener<Boolean> listener)
      boolean hasNext()
      void stop()
      • Methods inherited from class java.lang.Object

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

      • ChannelListDataHandler

        ChannelListDataHandler(Context applicationContext)
    • Method Detail

      • refresh

         void refresh()

        Refreshes the channel list (resets pagination). Rapid successive calls are auto-coalesced.

      • updateByChannel

         void updateByChannel(BaseChannel channel)

        Updates a single channel (from event callback)

      • loadNext

         void )>loadNext(OnDataChangeListener<Boolean> listener)