# SharedUiAdapterFactory

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/SharedUiAdapterFactory.kt+class:androidx.privacysandbox.ui.client.SharedUiAdapterFactory) 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)

*** ** * ** ***


```
@ExperimentalFeatures.SharedUiPresentationApi
public static class SharedUiAdapterFactory
```

<br />

*** ** * ** ***

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

Provides an implementation of `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter` created from a supplied Bundle which acts as a proxy between the host app and the Binder provided by the UI provider.

## Summary

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

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter` | `@https://developer.android.com/reference/androidx/privacysandbox/ui/core/ExperimentalFeatures.SharedUiPresentationApi [createFromCoreLibInfo](https://developer.android.com/reference/androidx/privacysandbox/ui/client/SharedUiAdapterFactory#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 SharedUiAdapterFactory 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)

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

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

Creates a `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter` from a supplied `https://developer.android.com/reference/androidx/privacysandbox/ui/client/SharedUiAdapterFactory#createFromCoreLibInfo(android.os.Bundle)` that acts as a proxy between the host app and the Binder provided by the UI provider.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if `coreLibInfo` does not contain a Binder corresponding to `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter` |