Function

hasContentDescription

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

hasContentDescription

Source set: Android
public fun hasContentDescription(
    value: String,
    substring: Boolean = true,
    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 true.
ignoreCase If true, case differences are ignored during comparison. Defaults to false.

Return

a matcher validating the presence of the content description.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: