---
title: "isDialog"
description: "Returns whether the node is a dialog.

This only checks if the node itself is a dialog, not if it is _part of_ a dialog. Use
`hasAnyAncestorThat(isDialog())` for that."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun isDialog(): SemanticsMatcher
```


Returns whether the node is a dialog.

This only checks if the node itself is a dialog, not if it is _part of_ a dialog. Use
`hasAnyAncestorThat(isDialog())` for that.



