ChannelAttachmentsViewModel

class ChannelAttachmentsViewModel(cid: String, attachmentTypes: List<String>, localFilter: (attachment: Attachment) -> Boolean = { true }, controllerProvider: ViewModel.() -> ChannelAttachmentsViewController = { ChannelAttachmentsViewController( cid = cid, attachmentTypes = attachmentTypes, localFilter = localFilter, scope = viewModelScope, ) }) : ViewModel

ViewModel for managing channel attachments and their actions.

Parameters

cid

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

attachmentTypes

The list of attachment types (e.g., "image", "file").

localFilter

A function to filter attachments locally after fetching.

controllerProvider

Constructors

Link copied to clipboard
constructor(cid: String, attachmentTypes: List<String>, localFilter: (attachment: Attachment) -> Boolean = { true }, controllerProvider: ViewModel.() -> ChannelAttachmentsViewController = { ChannelAttachmentsViewController( cid = cid, attachmentTypes = attachmentTypes, localFilter = localFilter, scope = viewModelScope, ) })

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Inherited functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard