onLongClick

Function

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

Action to be performed when the node is long clicked (long-pressed).

Parameters

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