InputAction

Represents an action attached to a text input field.

Constructors

Link copied to clipboard
constructor(title: String = "", style: InputActionStyle = InputActionStyle.Plain, icon: InputActionIcon? = null, hidesSharedBackground: Boolean = false, separatesSharedBackground: Boolean = false, onClick: () -> Unit)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the native action item should opt out of the shared toolbar background when the platform supports that behavior.

Link copied to clipboard

Optional platform-native icon shown instead of the title when supported.

Link copied to clipboard

Whether this item represents a flexible spacer instead of a tappable action button.

Link copied to clipboard
val onClick: () -> Unit

Callback invoked when the user triggers this input action. It is ignored for flexible spaces.

Link copied to clipboard

Whether a zero-width native separator should be inserted next to this item so adjacent action groups retain their own backgrounds.

Link copied to clipboard

Presentation style used by the native action bar.

Link copied to clipboard

Human-readable action label shown in the platform accessory area or action bar. It may be empty for icon-only actions and is ignored for flexible spaces.