ViewCompositionStrategy.DisposeOnDetachedFromWindowOrReleasedFromPool


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.

Summary

Public functions

open () -> Unit

Install this strategy for view and return a function that will uninstall it later.

android

Public functions

installFor

open fun installFor(view: AbstractComposeView): () -> Unit

Install this strategy for view and return a function that will uninstall it later. This function should not be called directly; it is called by AbstractComposeView.setViewCompositionStrategy after uninstalling the previous strategy.