# androidx.privacysandbox.ui.client.compose

This package lets an application host Compose UI which renders content from SdkRuntime-aware SDK.

## Top-level functions summary

|-------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | `@`[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable) `@`[ExperimentalFeatures.ChangingContentUiZOrderApi](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/ExperimentalFeatures.ChangingContentUiZOrderApi) [SandboxedSdkUi](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/compose/package-summary#SandboxedSdkUi(androidx.privacysandbox.ui.core.SandboxedUiAdapter,androidx.compose.ui.Modifier,kotlin.Boolean,androidx.privacysandbox.ui.client.view.SandboxedSdkViewEventListener))`(` ` sandboxedUiAdapter: `[SandboxedUiAdapter](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter)`,` ` modifier: `[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)`,` ` providerUiOnTop: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` sandboxedSdkViewEventListener: `[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. |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | `@`[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable) ~~[SandboxedSdkUiBelowHostWindow](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/compose/package-summary#SandboxedSdkUiBelowHostWindow(androidx.privacysandbox.ui.core.SandboxedUiAdapter,androidx.compose.ui.Modifier,androidx.privacysandbox.ui.client.view.SandboxedSdkViewEventListener))~~`(` ` sandboxedUiAdapter: `[SandboxedUiAdapter](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter)`,` ` modifier: `[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)`,` ` sandboxedSdkViewEventListener: `[SandboxedSdkViewEventListener](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/view/SandboxedSdkViewEventListener)`?` `)` **This function is deprecated.**This library is no longer supported.                                                                                                                                                                                                                                                                                                   |

## Top-level 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: `[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: `[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)` = Modifier`                                                                                | the[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)to be applied to this SandboxedSdkUi.                               |
| `providerUiOnTop: `[Boolean](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: `[SandboxedSdkViewEventListener](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/view/SandboxedSdkViewEventListener)`? = null` | an event listener to the UI presentation.                                                                                                                     |

### SandboxedSdkUiBelowHostWindow

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:SandboxedSdkUiBelowHostWindow)  
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
fun [SandboxedSdkUiBelowHostWindow](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/compose/package-summary#SandboxedSdkUiBelowHostWindow(androidx.privacysandbox.ui.core.SandboxedUiAdapter,androidx.compose.ui.Modifier,androidx.privacysandbox.ui.client.view.SandboxedSdkViewEventListener))(
    sandboxedUiAdapter: SandboxedUiAdapter,
    modifier: Modifier = Modifier,
    sandboxedSdkViewEventListener: SandboxedSdkViewEventListener? = null
): Unit
```
| **This function is deprecated.**   
| This library is no longer supported.

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

It always sets the Z-order of the remote content surface below its host window.

This library is no longer supported.  

|                                                                                           Parameters                                                                                            |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|
| `sandboxedUiAdapter: `[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: `[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)` = Modifier`                                                                                | the[Modifier](https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier)to be applied to this SandboxedSdkUiBelowHostWindow. |
| `sandboxedSdkViewEventListener: `[SandboxedSdkViewEventListener](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/client/view/SandboxedSdkViewEventListener)`? = null` | an event listener to the UI presentation.                                                                                                      |