Package-level declarations

Types

Link copied to clipboard
class ArchiveChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Archive the channel.

Link copied to clipboard
class BlockUser(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Block a user (used in DM channels).

Link copied to clipboard
interface ChannelAction

A self-describing channel action that carries display info, capability requirements, and an execution handler. Works for swipe actions, options menus, and any future action surface.

Link copied to clipboard
data class ConfirmationPopup(val title: String, val message: String, val confirmButtonText: String)

Represents a confirmation popup that should be shown before executing a ChannelAction.

Link copied to clipboard
class DeleteConversation(val channel: Channel, val label: String, val onAction: () -> Unit, val confirmationPopup: ConfirmationPopup? = null) : ChannelAction

Delete the conversation.

Link copied to clipboard
class LeaveGroup(val channel: Channel, val label: String, val onAction: () -> Unit, val confirmationPopup: ConfirmationPopup? = null) : ChannelAction

Leave the group channel.

Link copied to clipboard
class MuteChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Mute the channel.

Link copied to clipboard
class MuteUser(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Mute a user (used in DM channels).

Link copied to clipboard
class PinChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Pin the channel.

Link copied to clipboard
class UnarchiveChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Unarchive the channel.

Link copied to clipboard
class UnblockUser(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Unblock a user (used in DM channels).

Link copied to clipboard
class UnmuteChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Unmute the channel.

Link copied to clipboard
class UnmuteUser(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Unmute a user (used in DM channels).

Link copied to clipboard
class UnpinChannel(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Unpin the channel.

Link copied to clipboard
class ViewInfo(val channel: Channel, val label: String, val onAction: () -> Unit) : ChannelAction

Show more info about the channel.