# SandboxedSdkViewUiInfo

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/SandboxedSdkViewUiInfo.kt+class:androidx.privacysandbox.ui.core.SandboxedSdkViewUiInfo)  
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/SandboxedSdkViewUiInfo "View this page in Java")

<br />

```
class SandboxedSdkViewUiInfo
```

<br />

*** ** * ** ***

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

A class representing the UI state of a SandboxedSdkView.

## Summary

|                                                 ### Public companion functions                                                  |
|---------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SandboxedSdkViewUiInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo) | ~~[fromBundle](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#fromBundle(android.os.Bundle))~~`(bundle: `[Bundle](https://developer.android.com/reference/android/os/Bundle.html)`)` **This function is deprecated.**This library is no longer supported.                                                                                                         |
| [Bundle](https://developer.android.com/reference/android/os/Bundle.html)                                                        | ~~[toBundle](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toBundle(androidx.privacysandbox.ui.core.SandboxedSdkViewUiInfo))~~`(sandboxedSdkViewUiInfo: `[SandboxedSdkViewUiInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo)`)` **This function is deprecated.**This library is no longer supported. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                               ### Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ~~[SandboxedSdkViewUiInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#SandboxedSdkViewUiInfo(kotlin.Int,kotlin.Int,android.graphics.Rect,kotlin.Float,kotlin.collections.List))~~`(` ` uiContainerWidth: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` uiContainerHeight: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` onScreenGeometry: `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)`,` ` uiContainerOpacityHint: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`,` ` obstructedGeometry: `[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)`>` `)` **This function is deprecated.**This library is no longer supported. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | ~~[equals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#equals(kotlin.Any))~~`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` **This function is deprecated.**This library is no longer supported. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | ~~[hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#hashCode())~~`()` **This function is deprecated.**This library is no longer supported.                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | ~~[toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toString())~~`()` **This function is deprecated.**This library is no longer supported.                                                                                            |

|                                                                           ### Public properties                                                                           |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Rect](https://developer.android.com/reference/android/graphics/Rect.html)`>` | [obstructedGeometry](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#obstructedGeometry()) **This property is deprecated.**This library is no longer supported.         |
| [Rect](https://developer.android.com/reference/android/graphics/Rect.html)                                                                                                | [onScreenGeometry](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#onScreenGeometry()) **This property is deprecated.**This library is no longer supported.             |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                               | [uiContainerHeight](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#uiContainerHeight()) **This property is deprecated.**This library is no longer supported.           |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                                                                           | [uiContainerOpacityHint](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#uiContainerOpacityHint()) **This property is deprecated.**This library is no longer supported. |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                               | [uiContainerWidth](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#uiContainerWidth()) **This property is deprecated.**This library is no longer supported.             |

## Public companion functions

### fromBundle

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 [fromBundle](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#fromBundle(android.os.Bundle))(bundle: Bundle): SandboxedSdkViewUiInfo
```
| **This function is deprecated.**   
This library is no longer supported.  

### toBundle

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 [toBundle](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toBundle(androidx.privacysandbox.ui.core.SandboxedSdkViewUiInfo))(sandboxedSdkViewUiInfo: SandboxedSdkViewUiInfo): Bundle
```
| **This function is deprecated.**   
This library is no longer supported.  

## Public constructors

### SandboxedSdkViewUiInfo

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)  

```
[SandboxedSdkViewUiInfo](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#SandboxedSdkViewUiInfo(kotlin.Int,kotlin.Int,android.graphics.Rect,kotlin.Float,kotlin.collections.List))(
    uiContainerWidth: Int,
    uiContainerHeight: Int,
    onScreenGeometry: Rect,
    uiContainerOpacityHint: Float,
    obstructedGeometry: List<Rect>
)
```
| **This function is deprecated.**   
This library is no longer supported.  

## Public functions

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#equals(kotlin.Any))(other: Any?): Boolean
```
| **This function is deprecated.**   
This library is no longer supported.  

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#hashCode())(): Int
```
| **This function is deprecated.**   
This library is no longer supported.  

### toString

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toString())(): String
```
| **This function is deprecated.**   
This library is no longer supported.  

## Public properties

### obstructedGeometry

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)  

```
val obstructedGeometry: List<Rect>
```
| **This property is deprecated.**   
| This library is no longer supported.

Returns the list of coordinate rectangles, relative to the UI container, that are obstructed.

The container may be considered to be obstructed by another UI element if that UI element overlaps with the container, is displayed on top of it, and is not transparent. Ancestor views and children views will not be considered as obstructing the container. If the container's window is placed above the client window, no obstructions will be reported.

The coordinates of each obstruction in this list are relative to the UI container, and measured in pixels. The rectangles may overlap each other.

This value will only be non-empty if[SandboxedUiAdapterSignalOptions.OBSTRUCTIONS](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapterSignalOptions#OBSTRUCTIONS())is set on the[SessionObserverFactory](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SessionObserverFactory)associated with the UI container's[SandboxedUiAdapter](https://developer.android.com/reference/kotlin/androidx/privacysandbox/ui/core/SandboxedUiAdapter). Otherwise, this will return an empty list irrespective of any obstructions on the container.  

### onScreenGeometry

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)  

```
val onScreenGeometry: Rect
```
| **This property is deprecated.**   
| This library is no longer supported.

Returns the portion of the UI container which is not clipped by parent views and is visible on screen. The coordinates of this[Rect](https://developer.android.com/reference/android/graphics/Rect.html)are relative to the UI container and measured in pixels.

If none of the UI container is visible on screen, each coordinate in this[Rect](https://developer.android.com/reference/android/graphics/Rect.html)will be -1.  

### uiContainerHeight

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)  

```
val uiContainerHeight: Int
```
| **This property is deprecated.**   
| This library is no longer supported.

Returns the height of the UI container in pixels.  

### uiContainerOpacityHint

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)  

```
val uiContainerOpacityHint: Float
```
| **This property is deprecated.**   
| This library is no longer supported.

Returns the opacity of the UI container, where available.

When available, this is a value from 0 to 1, where 0 means the container is completely transparent and 1 means the container is completely opaque. This value doesn't necessarily reflect the user-visible opacity of the UI container, as shaders and other overlays can affect that.

When the opacity is not available, the value will be -1.  

### uiContainerWidth

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)  

```
val uiContainerWidth: Int
```
| **This property is deprecated.**   
| This library is no longer supported.

Returns the width of the UI container in pixels.