ItemClicked

data class ItemClicked @JvmOverloads constructor(@IdRes val id: Int, val kind: ContextualToolbarKind? = null) : ToolbarAction

A toolbar item was tapped.

Constructors

Link copied to clipboard
constructor(@IdRes id: Int, kind: ContextualToolbarKind? = null)

Properties

Link copied to clipboard
val id: Int

Resource id of the tapped item.

Link copied to clipboard

The contextual toolbar the tap originated from, or null when it came from the main toolbar. Stamped by the dispatching composable — listeners branch on this to tell an annotation-tool tap apart from a main-toolbar action with a colliding id.