clickable
Source set: Android
public fun RemoteModifier.clickable(
action: Action,
enabled: Boolean = true,
role: Role? = Role.Button,
): RemoteModifier
Configure component to receive clicks via input or accessibility "click" event.
Add this modifier to the element to make it clickable within its bounds.
If you need to support double click or long click alongside the single click, consider using combinedClickable.
Parameters
| action | will be called when user clicks on the element |
| enabled | Controls the enabled state. When false, action, and this modifier will appear disabled for accessibility services |
| role | the type of user interface element. Accessibility services might use this to describe the element or do customizations |