# AbstractSandboxedUiAdapter.AbstractSession

Artifact: [androidx.privacysandbox.ui:ui-provider](https://developer.android.com/jetpack/androidx/releases/privacysandbox-ui) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.kt+class:androidx.privacysandbox.ui.provider.AbstractSandboxedUiAdapter.AbstractSession) 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/provider/AbstractSandboxedUiAdapter.AbstractSession "View this page in Java")


```
abstract class AbstractSandboxedUiAdapter.AbstractSession : SandboxedUiAdapter.Session
```

<br />

*** ** * ** ***

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

An abstract class that implements `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session` so that a UI provider does not need to implement the entire interface.

UI providers should use this class rather than implementing `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session`.

## Summary

| ### Public constructors |
|---|
| `[AbstractSession](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#AbstractSession())()` **This function is deprecated.** This library is no longer supported. |

| ### Public functions |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[close](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#close())()` **This function is deprecated.** This library is no longer supported. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyConfigurationChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyConfigurationChanged(android.content.res.Configuration))(configuration: https://developer.android.com/reference/android/content/res/Configuration.html)` **This function is deprecated.** This library is no longer supported. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyResized](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyResized(kotlin.Int,kotlin.Int))(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** This library is no longer supported. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifySessionRendered](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifySessionRendered(kotlin.collections.Set))(supportedSignalOptions: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>)` **This function is deprecated.** This library is no longer supported. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyUiChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyUiChanged(android.os.Bundle))(uiContainerInfo: https://developer.android.com/reference/android/os/Bundle.html)` **This function is deprecated.** This library is no longer supported. |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[notifyZOrderChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyZOrderChanged(kotlin.Boolean))(isZOrderOnTop: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** This library is no longer supported. |

| ### Public properties |
|---|---|
| `final https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-set/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html>` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#signalOptions()` **This property is deprecated.** This library is no longer supported. |

| ### Inherited properties |
|---|
| From [androidx.privacysandbox.ui.core.SandboxedUiAdapter.Session](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session) |---|---| | `abstract https://developer.android.com/reference/android/view/View.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#view()` **This property is deprecated.** This library is no longer supported. | |

## Public constructors

### AbstractSession

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)

```
[AbstractSession](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#AbstractSession())()
```

> [!CAUTION]
> **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)

```
open fun [close](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#close())(): Unit
```

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

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

### notifyConfigurationChanged

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)

```
open fun [notifyConfigurationChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyConfigurationChanged(android.content.res.Configuration))(configuration: Configuration): Unit
```

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

Notify the session that the host configuration has changed to `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifyConfigurationChanged(android.content.res.Configuration)`.

### notifyResized

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)

```
open fun [notifyResized](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyResized(kotlin.Int,kotlin.Int))(width: Int, height: Int): Unit
```

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

Notify the provider that the size of the host presentation area has changed to a size of `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifyResized(kotlin.Int,kotlin.Int)` x `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifyResized(kotlin.Int,kotlin.Int)` pixels.

### notifySessionRendered

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)

```
open fun [notifySessionRendered](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifySessionRendered(kotlin.collections.Set))(supportedSignalOptions: Set<String>): Unit
```

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

Notifies that the session has been rendered inside the container hosting this session.

`https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifySessionRendered(kotlin.collections.Set)` specifies the signal options which are supported by the host container.

UI providers should add `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserverFactory`s to receive this value rather than using this method directly. This API is used to notify the `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserver`s associated with this session about the supported signal options for this session.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapterSignalOptions` |   |

### notifyUiChanged

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)

```
open fun [notifyUiChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyUiChanged(android.os.Bundle))(uiContainerInfo: Bundle): Unit
```

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

Notify the session when the presentation state of its UI container has changed.

`https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifyUiChanged(android.os.Bundle)` contains a Bundle that represents the state of the container. The exact details of this Bundle depend on the container this Bundle is describing. This notification is not in real time and is throttled, so it should not be used to react to UI changes on the client side.

UI providers should add `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserverFactory`s to observe UI changes rather than using this method directly.

### notifyZOrderChanged

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)

```
open fun [notifyZOrderChanged](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/provider/AbstractSandboxedUiAdapter.AbstractSession#notifyZOrderChanged(kotlin.Boolean))(isZOrderOnTop: Boolean): Unit
```

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

Notify the provider that there's a change in the intended z order of the session UI and it is now set to `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter.Session#notifyZOrderChanged(kotlin.Boolean)`.

## Public properties

### signalOptions

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)

```
final val signalOptions: Set<String>
```

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

The set of options that will be used to determine what information is calculated and sent to `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserver`s attached to this session.

This value should not be directly set by UI providers. Instead, the registration of any `https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserverFactory` will indicate that information should be calculated for this session.