ChannelAttachmentsViewController

class ChannelAttachmentsViewController(cid: String, attachmentTypes: List<String>, chatClient: ChatClient = ChatClient.instance(), scope: CoroutineScope)

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.

Parameters

cid

The full channel identifier (e.g., "messaging:123").

attachmentTypes

The list of attachment types to filter by.

chatClient

The ChatClient instance used for interacting with the chat API.

scope

The CoroutineScope used for launching coroutines.

Constructors

Link copied to clipboard
constructor(cid: String, attachmentTypes: List<String>, chatClient: ChatClient = ChatClient.instance(), scope: CoroutineScope)

Properties

Link copied to clipboard

One shot events triggered by the controller.

Link copied to clipboard

The current state of the channel attachments view.

Functions

Link copied to clipboard