DisposeOnRecycled

Similar to ViewCompositionStrategy.DisposeOnDetachedFromWindowOrReleasedFromPool but skips releasing compositions when detached from window. This is useful for re-using compositions a lot more often when scrolling a RecyclerView.

If you use DpadRecyclerView.setRecycleChildrenOnDetach, this will behave exactly the same as ViewCompositionStrategy.DisposeOnDetachedFromWindowOrReleasedFromPool.

If you use DpadRecyclerView.setExtraLayoutSpaceStrategy, please profile the compositions before considering using this strategy.

Functions

Link copied to clipboard
open override fun installFor(view: AbstractComposeView): () -> Unit