<div class='type'>Function</div>


<a id='references'></a>


<h2 id="filter-matcher">filter</h2>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@CheckResult
fun SemanticsNodeInteractionCollection.filter(
    matcher: SemanticsMatcher
): SemanticsNodeInteractionCollection
```


Returns all the nodes matching the given `matcher`.

#### Parameters

| | |
| --- | --- |
| matcher | Matcher to use for the filtering. |