Function

hasContentDescriptionExactly

Returns whether the node's content description contains exactly the given values and nothing else.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

hasContentDescriptionExactly

Common
fun hasContentDescriptionExactly(vararg values: String): SemanticsMatcher

Returns whether the node's content description contains exactly the given values and nothing else.

Note that in merged semantics tree there can be a list of content descriptions that got merged from the child nodes. Typically an accessibility tooling will decide based on its heuristics which ones to announce.

Parameters

values List of values to match (the order does not matter)