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

```
public final class EmbeddedActivityWindowInfo
```

<br />

*** ** * ** ***

Describes the embedded window related info of an activity.

When the activity is embedded, the `https://developer.android.com/reference/androidx/window/embedding/ActivityEmbeddingController#embeddedActivityWindowInfo(android.app.Activity)` will be invoked when any fields of `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo` is changed. When the activity is not embedded, the `https://developer.android.com/reference/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/androidx/window/embedding/EmbeddedActivityWindowInfo#isEmbedded()` will be `false`.

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

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo#getBoundsInParentHost()()` The relative bounds of the embedded `https://developer.android.com/reference/androidx/window/embedding/ActivityStack` in the host container coordinate space. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo#getParentHostBounds()()` 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. |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo#hashCode()()` |
| `final boolean` | `https://developer.android.com/reference/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/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddedActivityWindowInfo#toString()()` |

## Public methods

### equals

```
public boolean equals(Object other)
```

### getBoundsInParentHost

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

```
public final @NonNull Rect getBoundsInParentHost()
```

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

### getParentHostBounds

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

```
public final @NonNull Rect getParentHostBounds()
```

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.

### hashCode

```
public int hashCode()
```

### isEmbedded

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

```
public final boolean isEmbedded()
```

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

### toString

```
public @NonNull String toString()
```