onClick

Function

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

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

Parameters

labelOptional label for this action.
actionAction to be performed when the SemanticsActions.OnClick is called.