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
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: