Class

MovableContent

This class is used internally by movableContentOf.

Source set: Common
public class MovableContent<P>(public val content: @Composable (parameter: P) -> Unit)

This class is used internally by movableContentOf. Please see movableContentOf which has documentation and example for how to use movable content. This class cannot be used directly.

A Compose compiler plugin API. DO NOT call directly.

An instance used to track the identity of the movable content. Using a holder object allows creating unique movable content instances from the same instance of a lambda. This avoids using the identity of a lambda instance as it can be merged into a singleton or merged by later rewritings and using its identity might lead to unpredictable results that might change from the debug and release builds.

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: