Android
class DisposeOnLifecycleDestroyed(private val lifecycle: Lifecycle) : ViewCompositionStrategy
ViewCompositionStrategy that disposes the composition when lifecycle is [destroyed]Lifecycle.Event.ON_DESTROY. This strategy is appropriate for Compose UI views that share a 1-1 relationship with a known LifecycleOwner.
Secondary Constructors
constructor(lifecycleOwner: LifecycleOwner) : this(lifecycleOwner.lifecycle)