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

*** ** * ** ***


```
public final class SandboxedSdkViewUiInfo
```

<br />

*** ** * ** ***

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

A class representing the UI state of a SandboxedSdkView.

## Summary

| ### Public constructors |
|---|
| `[SandboxedSdkViewUiInfo](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#SandboxedSdkViewUiInfo(kotlin.Int,kotlin.Int,android.graphics.Rect,kotlin.Float,kotlin.collections.List))( int uiContainerWidth, int uiContainerHeight, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html onScreenGeometry, float uiContainerOpacityHint, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html> obstructedGeometry )` **This method is deprecated.** This library is no longer supported. |

| ### Public methods |
|---|---|
| `boolean` | `[equals](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** This library is no longer supported. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo` | `[fromBundle](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#fromBundle(android.os.Bundle))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html bundle)` **This method is deprecated.** This library is no longer supported. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/List.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html>` | `[getObstructedGeometry](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getObstructedGeometry())()` **This method is deprecated.** This library is no longer supported. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html` | `[getOnScreenGeometry](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getOnScreenGeometry())()` **This method is deprecated.** This library is no longer supported. |
| `final int` | `[getUiContainerHeight](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerHeight())()` **This method is deprecated.** This library is no longer supported. |
| `final float` | `[getUiContainerOpacityHint](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerOpacityHint())()` **This method is deprecated.** This library is no longer supported. |
| `final int` | `[getUiContainerWidth](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerWidth())()` **This method is deprecated.** This library is no longer supported. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#hashCode())()` **This method is deprecated.** This library is no longer supported. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/os/Bundle.html` | `[toBundle](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toBundle(androidx.privacysandbox.ui.core.SandboxedSdkViewUiInfo))(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo sandboxedSdkViewUiInfo)` **This method is deprecated.** This library is no longer supported. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toString())()` **This method 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)

```
public [SandboxedSdkViewUiInfo](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#SandboxedSdkViewUiInfo(kotlin.Int,kotlin.Int,android.graphics.Rect,kotlin.Float,kotlin.collections.List))(
    int uiContainerWidth,
    int uiContainerHeight,
    @NonNull Rect onScreenGeometry,
    float uiContainerOpacityHint,
    @NonNull List<@NonNull Rect> obstructedGeometry
)
```

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

## Public methods

### equals

```
public boolean [equals](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#equals(kotlin.Any))(Object other)
```

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

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

```
public static final @NonNull SandboxedSdkViewUiInfo [fromBundle](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#fromBundle(android.os.Bundle))(@NonNull Bundle bundle)
```

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

### getObstructedGeometry

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 final @NonNull List<@NonNull Rect> [getObstructedGeometry](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getObstructedGeometry())()
```

> [!CAUTION]
> **This method 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 `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedUiAdapterSignalOptions#OBSTRUCTIONS()` is set on the `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SessionObserverFactory` associated with the UI container's `https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedUiAdapter`. Otherwise, this will return an empty list irrespective of any obstructions on the container.

### getOnScreenGeometry

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 final @NonNull Rect [getOnScreenGeometry](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getOnScreenGeometry())()
```

> [!CAUTION]
> **This method 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 `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 `https://developer.android.com/reference/android/graphics/Rect.html` will be -1.

### getUiContainerHeight

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 final int [getUiContainerHeight](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerHeight())()
```

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

Returns the height of the UI container in pixels.

### getUiContainerOpacityHint

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 final float [getUiContainerOpacityHint](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerOpacityHint())()
```

> [!CAUTION]
> **This method 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.

### getUiContainerWidth

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 final int [getUiContainerWidth](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#getUiContainerWidth())()
```

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

Returns the width of the UI container in pixels.

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#hashCode())()
```

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

```
public static final @NonNull Bundle [toBundle](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toBundle(androidx.privacysandbox.ui.core.SandboxedSdkViewUiInfo))(@NonNull SandboxedSdkViewUiInfo sandboxedSdkViewUiInfo)
```

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

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/privacysandbox/ui/core/SandboxedSdkViewUiInfo#toString())()
```

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