# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SharedUiAdapter.Session "View this page in Java")

<br />

```
interface SharedUiAdapter.Session : AutoCloseable
```

<br />

*** ** * ** ***

| **This interface is deprecated.**   
| This library is no longer supported.

A single session with the UI provider.

## Summary

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | ~~[close](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.Session#close())~~`()` **This function is deprecated.**This library is no longer supported. |

## Public functions

### 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)  

```
fun [close](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.Session#close())(): Unit
```
| **This function is deprecated.**   
| This library is no longer supported.

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