# EmbeddingAnimationParams.AnimationSpec

# EmbeddingAnimationParams.AnimationSpec

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec "View this page in Java")

<br />

```
class EmbeddingAnimationParams.AnimationSpec
```

<br />

*** ** * ** ***

The animation to use when an activity transitions (e.g. open, close, or change).

## Summary

|                                                              ### Public companion properties                                                              |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [EmbeddingAnimationParams.AnimationSpec](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec) | [DEFAULT](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#DEFAULT()) Specifies the default animation defined by the system. |
| [EmbeddingAnimationParams.AnimationSpec](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec) | [JUMP_CUT](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#JUMP_CUT()) Specifies an animation with zero duration.           |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [equals](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#equals(kotlin.Any))`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | [hashCode](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#hashCode())`()`                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | [toString](https://developer.android.com/reference/kotlin/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#toString())`()` A string representation of this`AnimationSpec`.                                            |

## Public companion properties

### DEFAULT

```
val DEFAULT: EmbeddingAnimationParams.AnimationSpec
```

Specifies the default animation defined by the system.  

### JUMP_CUT

```
val JUMP_CUT: EmbeddingAnimationParams.AnimationSpec
```

Specifies an animation with zero duration.  

## Public functions

### equals

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

### hashCode

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

### toString

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

A string representation of this`AnimationSpec`.  

|                                      Returns                                      |
|-----------------------------------------------------------------------------------|------------------------------------------|
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | the string representation of the object. |