Start native apps faster with the Composables CLI ->
Object

ViewCompositionStrategy.DisposeOnDetachedFromWindowOrReleasedFromPool

The composition will be disposed automatically when the view is detached from a window, unless it is part of a [pooling container]isPoolingContainer, such as RecyclerView.

Source set: Android
public object DisposeOnDetachedFromWindowOrReleasedFromPool : ViewCompositionStrategy

The composition will be disposed automatically when the view is detached from a window, unless it is part of a pooling container, such as RecyclerView.

When not within a pooling container, this behaves exactly the same as DisposeOnDetachedFromWindow.

Functions

installFor

Source set: Android
override fun installFor(view: AbstractComposeView): () -> Unit