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

*** ** * ** ***


```
public final class EmbeddingAnimationParams.AnimationSpec
```

<br />

*** ** * ** ***

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

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#DEFAULT()` Specifies the default animation defined by the system. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#JUMP_CUT()` Specifies an animation with zero duration. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `int` | `https://developer.android.com/reference/androidx/window/embedding/EmbeddingAnimationParams.AnimationSpec#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/EmbeddingAnimationParams.AnimationSpec#toString()()` A string representation of this `AnimationSpec`. |

## Public fields

### DEFAULT

```
public static final @NonNull EmbeddingAnimationParams.AnimationSpec DEFAULT
```

Specifies the default animation defined by the system.

### JUMP_CUT

```
public static final @NonNull EmbeddingAnimationParams.AnimationSpec JUMP_CUT
```

Specifies an animation with zero duration.

## Public methods

### equals

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

### hashCode

```
public int hashCode()
```

### toString

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

A string representation of this `AnimationSpec`.

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | the string representation of the object. |