# EmbeddingAnimationBackground.ColorBackground

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

*** ** * ** ***


```
public final class EmbeddingAnimationBackground.ColorBackground extends EmbeddingAnimationBackground
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.window.embedding.EmbeddingAnimationBackground](https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground) ||
|   | ↳ | [androidx.window.embedding.EmbeddingAnimationBackground.ColorBackground](https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground) |

*** ** * ** ***

An {@link EmbeddingAnimationBackground} to specify of using a developer-defined color as the animation background. Only opaque background is supported.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground#createColorBackground(kotlin.Int)` |   |

## Summary

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final int` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground#getColor()()` `https://developer.android.com/reference/androidx/annotation/ColorInt` to represent the color to use as the background color. |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground#hashCode()()` |
| `@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/EmbeddingAnimationBackground.ColorBackground#toString()()` |

## Public methods

### equals

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

### getColor

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

```
public final int getColor()
```

`https://developer.android.com/reference/androidx/annotation/ColorInt` to represent the color to use as the background color.

### hashCode

```
public int hashCode()
```

### toString

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