# SharedUiAdapter.SessionClient

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.SessionClient)  
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.SessionClient "View this page in Java")

<br />

```
interface SharedUiAdapter.SessionClient
```

<br />

*** ** * ** ***

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

The client of a single session that will receive callback events from an active session.

## Summary

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

## Public functions

### onSessionError

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 [onSessionError](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.SessionClient#onSessionError(kotlin.Throwable))(throwable: Throwable): Unit
```
| **This function is deprecated.**   
| This library is no longer supported.

Called to report a terminal error in the session. No further events will be reported to this[SessionClient](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.SessionClient)and any further or currently pending calls to the[Session](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.Session)that may have been in flight may be ignored.  

### onSessionOpened

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 [onSessionOpened](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.SessionClient#onSessionOpened(androidx.privacysandbox.ui.core.SharedUiAdapter.Session))(session: SharedUiAdapter.Session): Unit
```
| **This function is deprecated.**   
| This library is no longer supported.

Called to report that the session was opened successfully, delivering the[Session](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SharedUiAdapter.Session)handle that should be used to communicate with the provider.