Function

hasSetTextAction

Returns whether the node defines a semantics action to set text on it.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

hasSetTextAction

Common
fun hasSetTextAction() = hasKey(SemanticsActions.SetText)

Returns whether the node defines a semantics action to set text on it.

This can be used to, for instance, filter out text fields.