ChannelAction

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.

Inheritors

Properties

Link copied to clipboard
abstract val channel: Channel

The channel this action targets.

Link copied to clipboard

Optional confirmation dialog to show before executing.

Link copied to clipboard
abstract val icon: Int

Drawable resource for the action icon.

Link copied to clipboard

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

Link copied to clipboard
abstract val label: String

Human-readable label for the action.

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

The handler to execute when the action is confirmed.