ActionKey

class ActionKey<T : Any>(val name: String)(source)

Referentially identified key for one typed component action.

A component and its matching modifier extension share one key instance. Keys intentionally use object identity so unrelated libraries may use equal display names without intercepting each other's actions. The key owns no callbacks or runtime resources and is safe to retain for the lifetime of an application.

Type Parameters

T

immutable action payload type.

Constructors

Link copied to clipboard
constructor(name: String)

Properties

Link copied to clipboard

diagnostic English name used only in failures and debugging output.

Functions

Link copied to clipboard
open override fun toString(): String