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

*** ** * ** ***

<br />

```
class EmbeddingAnimationBackground.ColorBackground : EmbeddingAnimationBackground
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.window.embedding.EmbeddingAnimationBackground](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationBackground) ||
|   | ↳ | [androidx.window.embedding.EmbeddingAnimationBackground.ColorBackground](https://developer.android.com/reference/kotlin/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/kotlin/androidx/window/embedding/EmbeddingAnimationBackground#createColorBackground(kotlin.Int)` |   |

## 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/EmbeddingAnimationBackground.ColorBackground#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/EmbeddingAnimationBackground.ColorBackground#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground#toString()()` |

| ### Public properties |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = -16777216, to = -1) @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationBackground.ColorBackground#color()` `https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt` to represent the color to use as the background color. |

## Public functions

### equals

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

### hashCode

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

### toString

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

## Public properties

### color

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

```
val color: @IntRange(from = -16777216, to = -1) @ColorInt Int
```

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