---
title: "hasContentDescription"
description: "Verifies the 3D semantic node's content description for accessibility services."
type: "function"
lastmod: "2026-06-18T10:32:52.440964Z"
---
## API Reference

### hasContentDescription

> Source set: Android

```kotlin
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. |
