# RemoteContentPreview

## Functions summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/remote/tooling/preview/RemoteContentPreview.composable#RemoteContentPreview(androidx.compose.ui.Modifier,androidx.compose.remote.creation.profile.Profile,kotlin.Function0)( modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, profile: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/profile/Profile, content: @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Displays a Remote Compose Composable in the Android Studio Preview. |

## Functions

### RemoteContentPreview

Artifact: [androidx.compose.remote:remote-tooling-preview](https://developer.android.com/jetpack/androidx/releases/compose-remote) [View Source](https://cs.android.com/search?q=file:androidx/compose/remote/tooling/preview/RemoteContentPreview.kt+function:RemoteContentPreview) Added in [1.0.0-alpha23](https://developer.android.com/jetpack/androidx/releases/compose-remote#1.0.0-alpha23)

```
@Composable
fun RemoteContentPreview(
    modifier: Modifier = Modifier,
    profile: Profile = RcPlatformProfiles.ANDROIDX,
    content: @RemoteComposable @Composable () -> Unit
): Unit
```

Displays a Remote Compose Composable in the Android Studio Preview.

This function captures the provided `https://developer.android.com/reference/kotlin/androidx/compose/remote/tooling/preview/package-summary#RemoteContentPreview(androidx.compose.ui.Modifier,androidx.compose.remote.creation.profile.Profile,kotlin.Function0)` using the specified `https://developer.android.com/reference/kotlin/androidx/compose/remote/tooling/preview/package-summary#RemoteContentPreview(androidx.compose.ui.Modifier,androidx.compose.remote.creation.profile.Profile,kotlin.Function0)` and renders it as a to simulate how it would appear when played back in a remote context.

| Parameters |
|---|---|
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | The modifier to be applied to the box containing the preview. |
| `profile: https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/profile/Profile = RcPlatformProfiles.ANDROIDX` | The `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/profile/Profile` defining the target environment for the remote content. Defaults to `https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/profile/RcPlatformProfiles#ANDROIDX()`. |
| `content: @https://developer.android.com/reference/kotlin/androidx/compose/remote/creation/compose/layout/RemoteComposable @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | The Composable content to be captured and previewed. It does not have be annotated with @RemoteComposable. |