<div class='sourceset sourceset-android'>Android</div>

```kotlin
object DisposeOnViewTreeLifecycleDestroyed : ViewCompositionStrategy
```

[ViewCompositionStrategy](/jetpack-compose/androidx.compose.ui/ui/interfaces/ViewCompositionStrategy) that disposes the composition when the `LifecycleOwner` returned by
`findViewTreeLifecycleOwner` of the next window the view is attached to is
[destroyed]`Lifecycle.Event.ON_DESTROY`. This strategy is appropriate for Compose UI views
that share a 1-1 relationship with their closest `LifecycleOwner`, such as a Fragment view.