# SandboxedUiAdapterFactory

Artifact: [androidx.privacysandbox.ui:ui-client](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ui) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ui/client/SandboxedUiAdapterFactory.kt+class:androidx.privacysandbox.ui.client.SandboxedUiAdapterFactory) 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)

*** ** * ** ***


```
public static class SandboxedUiAdapterFactory
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> This library is no longer supported.

Provides an adapter created from a supplied Bundle which acts as a proxy between the host app and the Binder provided by the provider of content.

## Summary

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ui/client/SandboxedUiAdapterFactory` | `https://developer.android.com/reference/androidx/privacysandbox/ui/client/SandboxedUiAdapterFactory#INSTANCE()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedUiAdapter` | `[createFromCoreLibInfo](https://developer.android.com/reference/androidx/privacysandbox/ui/client/SandboxedUiAdapterFactory#createFromCoreLibInfo(android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html coreLibInfo)` **This method is deprecated.** This library is no longer supported. |

## Public fields

### INSTANCE

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)

```
public static @NonNull SandboxedUiAdapterFactory INSTANCE
```

## Public methods

### createFromCoreLibInfo

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)

```
public final @NonNull SandboxedUiAdapter [createFromCoreLibInfo](https://developer.android.com/reference/androidx/privacysandbox/ui/client/SandboxedUiAdapterFactory#createFromCoreLibInfo(android.os.Bundle))(@NonNull Bundle coreLibInfo)
```

> [!CAUTION]
> **This method is deprecated.**   
> This library is no longer supported.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if {@code coreLibInfo} does not contain a Binder with the key UI_ADAPTER_BINDER |