---
title: "hasAnyChild"
description: "Verifies whether any immediate child of the 3D semantic node satisfies the given criteria."
type: "function"
lastmod: "2026-06-18T10:32:52.439799Z"
---
## API Reference

### hasAnyChild

> Source set: Android

```kotlin
public fun hasAnyChild(matcher: SubspaceSemanticsMatcher): SubspaceSemanticsMatcher
```

Verifies whether any immediate child of the 3D semantic node satisfies the given criteria.

Useful when testing spatial composite layouts or multiple anchored floating panels grouped under
a common parent semantic container.

#### Parameters

| | |
| --- | --- |
| matcher | The semantic criteria for the expected child. |

#### Returns

| | |
| --- | --- |
|  | a matcher validating the node's children. |
