DeleteConversation

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

Delete the conversation.

Constructors

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

Properties

Link copied to clipboard
open override val channel: Channel

The channel this action targets.

Link copied to clipboard
open override val confirmationPopup: ConfirmationPopup? = null

Optional confirmation dialog to show before executing.

Link copied to clipboard
open override val icon: Int

Drawable resource for the action icon.

Link copied to clipboard
open override val isDestructive: Boolean = true

Whether this action is destructive (e.g. delete).

Link copied to clipboard
open override val label: String

Human-readable label for the action.

Link copied to clipboard
open override val onAction: () -> Unit

The handler to execute when the action is confirmed.