🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

onClick

Action to be performed when the node is clicked (single-tapped).

onClick

Source set: Common
public fun SemanticsPropertyReceiver.onClick(
    label: String? = null,
    action: (() -> Boolean)?,
): Unit

Action to be performed when the node is clicked (single-tapped).

Parameters

label Optional label for this action.
action Action to be performed when the SemanticsActions.OnClick is called.