# MovableContent

Artifact: [androidx.compose.runtime:runtime](https://developer.android.com/jetpack/androidx/releases/compose-runtime) [View Source](https://cs.android.com/search?q=file:androidx/compose/runtime/MovableContent.kt+class:androidx.compose.runtime.MovableContent) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0) Common/AllAndroid/JVMNative/C/iOSJavaScript
- Cmn

  ```
  @InternalComposeApi
  class MovableContent<P : Any?>
  ```

*** ** * ** ***

This class is used internally by `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#movableContentOf(kotlin.Function0)`. Please see `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#movableContentOf(kotlin.Function0)` 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.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/runtime/package-summary#movableContentOf(kotlin.Function0)` |   |

## Summary

| ### Public constructors |
|---|---|
| `<P : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/compose/runtime/MovableContent#MovableContent(kotlin.Function1)(content: @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (parameter) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` | Cmn |

| ### Public properties |
|---|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable (parameter) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/runtime/MovableContent#content()` | Cmn |

## Public constructors

### MovableContent

Cmn

```
<P : Any?> MovableContent(content: @Composable (parameter) -> Unit)
```

## Public properties

### content

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-runtime#1.2.0)

```
val content: @Composable (parameter) -> Unit
```