# SandboxedSdkUi

## 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/privacysandbox/ui/core/ExperimentalFeatures.ChangingContentUiZOrderApi https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/compose/SandboxedSdkUi.composable#SandboxedSdkUi(androidx.privacysandbox.ui.core.SandboxedUiAdapter,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.privacysandbox.ui.client.view.SandboxedSdkViewEventListener)( sandboxedUiAdapter: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, providerUiOnTop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, sandboxedSdkViewEventListener: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/view/SandboxedSdkViewEventListener? )` Composable that can be used to remotely render UI from a SandboxedSdk to host app window. |

## Functions

### SandboxedSdkUi

Artifact: [androidx.privacysandbox.ui:ui-client-compose](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ui) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ui/client/compose/SandboxedSdkUi.kt+function:SandboxedSdkUi) Added in [1.0.0-alpha17](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ui#1.0.0-alpha17) Deprecated in [1.0.0-alpha17](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ui#1.0.0-alpha17)

```
@Composable
@ExperimentalFeatures.ChangingContentUiZOrderApi
fun SandboxedSdkUi(
    sandboxedUiAdapter: SandboxedUiAdapter,
    modifier: Modifier = Modifier,
    providerUiOnTop: Boolean = false,
    sandboxedSdkViewEventListener: SandboxedSdkViewEventListener? = null
): Unit
```

Composable that can be used to remotely render UI from a SandboxedSdk to host app window.

| Parameters |
|---|---|
| `sandboxedUiAdapter: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter` | an adapter that provides content from a SandboxedSdk to be displayed as part of a host app's window. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied to this SandboxedSdkUi. |
| `providerUiOnTop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | sets the Z-order of the SandboxedSdkUi surface, relative to its host window. True means on top, while false means below (it is false if it is not specified). |
| `sandboxedSdkViewEventListener: https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/view/SandboxedSdkViewEventListener? = null` | an event listener to the UI presentation. |