ChannelAttachmentsViewModel
class ChannelAttachmentsViewModel(cid: String, attachmentTypes: List<String>, controllerProvider: ViewModel.() -> ChannelAttachmentsViewController = {
ChannelAttachmentsViewController(
cid = cid,
attachmentTypes = attachmentTypes,
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").
controllerProvider
The provider for ChannelAttachmentsViewController.
Constructors
Link copied to clipboard
constructor(cid: String, attachmentTypes: List<String>, controllerProvider: ViewModel.() -> ChannelAttachmentsViewController = {
ChannelAttachmentsViewController(
cid = cid,
attachmentTypes = attachmentTypes,
scope = viewModelScope,
)
})