Compose Unstyled 2.0 is out! Check the official announcement blog ->
Function

hasContentDescription

Verifies the 3D semantic node's content description for accessibility services.

hasContentDescription

Source set: Android
public fun hasContentDescription(
    value: String,
    substring: Boolean = false,
    ignoreCase: Boolean = false,
): SubspaceSemanticsMatcher

Verifies the 3D semantic node's content description for accessibility services.

Note that 2D UI content rendered inside a Subspace panel (like text or buttons) maintains a separate 2D semantics tree.

Parameters

value The exact or partial description string expected on the spatial node.
substring If true, matches any node whose description contains value. Defaults to false.
ignoreCase If true, case differences are ignored during comparison. Defaults to false.

Returns

a matcher validating the presence of the content description.

Last updated: