Class ChannelsQuery

  • All Implemented Interfaces:
    ai.nexconn.chat.internal.query.PageableQuery

    
    public final class ChannelsQuery
     implements PageableQuery<PageData<BaseChannel>>
                        

    Channel list pagination query object.

    Implements PageableQuery Interface, Provides Pagination load Channel list capability. See SendBird Query mode, Via loadNextPage Load data page by page, Via hasMore Check if there is more data.

    Via BaseChannel.createChannelsQuery Create instance, Not cannot be constructed directly.

    Usage Example:

    val params = ChannelListParams(
        channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP)
    ).apply {
        pageSize = 20
        topPriority = true
    }
    val query = BaseChannel.createChannelListQuery(params)
    
    // Load first page
    query.loadNextPage { list, error ->
        if (error == null && list != null) {
            // Handle Data
        }
    }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Boolean isLoading
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description