Package 

Class ChannelAttachmentsViewController


  • 
    public final class ChannelAttachmentsViewController
    
                        

    Controller responsible for managing the state and events related to channel attachments.

    This controller handles the loading of attachments in a channel, supports pagination, and emits state updates and events for the UI to react to.

    • Constructor Detail

      • ChannelAttachmentsViewController

        ChannelAttachmentsViewController(String cid, List<String> attachmentTypes, Function1<Attachment, Boolean> localFilter, ChatClient chatClient, CoroutineScope scope)
        Parameters:
        cid - The full channel identifier (e.g., "messaging:123").
        attachmentTypes - The list of attachment types to filter by.
        localFilter - A function to filter attachments locally after fetching.
        chatClient - The ChatClient instance used for interacting with the chat API.
        scope - The CoroutineScope used for launching coroutines.