---
title: "findViewTreeCompositionContext"
description: "Returns the parent [CompositionContext] for this point in the view hierarchy, or `null` if none
can be found.

See [compositionContext] to get or set the parent [CompositionContext] for a specific view."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
fun View.findViewTreeCompositionContext(): CompositionContext?
```


Returns the parent `CompositionContext` for this point in the view hierarchy, or `null` if none
can be found.

See `compositionContext` to get or set the parent `CompositionContext` for a specific view.



