# SharedUiAdapter.Session

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

<br />

*** ** * ** ***

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

A single session with the UI provider.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[close](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter.Session#close())()` **This method is deprecated.** This library is no longer supported. |

## Public methods

### close

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)

```
abstract void [close](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter.Session#close())()
```

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

Closes this session, indicating that the remote provider should dispose of associated resources and that the `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter.SessionClient` should not receive further callback events.