# EmbeddedActivityWindowInfo

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/embedding/EmbeddedActivityWindowInfo.kt+class:androidx.window.embedding.EmbeddedActivityWindowInfo) Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

*** ** * ** ***

<br />

```
class EmbeddedActivityWindowInfo
```

<br />

*** ** * ** ***

Describes the embedded window related info of an activity.

When the activity is embedded, the `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityEmbeddingController#embeddedActivityWindowInfo(android.app.Activity)` will be invoked when any fields of `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo` is changed. When the activity is not embedded, the `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityEmbeddingController#embeddedActivityWindowInfo(android.app.Activity)` will not be triggered unless the activity is becoming non-embedded from embedded, in which case `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#isEmbedded()` will be `false`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityEmbeddingController#embeddedActivityWindowInfo(android.app.Activity)` |   |

## Summary

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#toString()()` |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#boundsInParentHost()` The relative bounds of the embedded `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` in the host container coordinate space. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#isEmbedded()` Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with. |
| `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#parentHostBounds()` The bounds of the host container in display coordinate space, which should be the Task bounds for regular embedding use case, or if the activity is not embedded. |

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### boundsInParentHost

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val boundsInParentHost: Rect
```

The relative bounds of the embedded `https://developer.android.com/reference/kotlin/androidx/window/embedding/ActivityStack` in the host container coordinate space. It has the same size as `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddedActivityWindowInfo#(kotlin.Boolean,android.graphics.Rect,android.graphics.Rect)` if the activity is not embedded.

### isEmbedded

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val isEmbedded: Boolean
```

Whether this activity is embedded and its presentation may be customized by the host process of the task it is associated with.

### parentHostBounds

Added in [1.4.0](https://developer.android.com/jetpack/androidx/releases/window#1.4.0)

```
val parentHostBounds: Rect
```

The bounds of the host container in display coordinate space, which should be the Task bounds for regular embedding use case, or if the activity is not embedded.