# AnimBuilder

Artifact: [androidx.navigation:navigation-common](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/NavOptionsBuilder.android.kt+class:androidx.navigation.AnimBuilder) Added in [2.4.0](https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/navigation/AnimBuilder "View this page in Java") Common/AllAndroid/JVMJavaScript
- android

  ```
  @NavOptionsDsl
  class AnimBuilder
  ```

*** ** * ** ***

DSL for setting custom Animation or Animator resources on a `https://developer.android.com/reference/kotlin/androidx/navigation/NavOptionsBuilder`

## Summary

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/navigation/AnimBuilder#AnimBuilder()()` | android |

| ### Public properties |
|---|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/AnimRes @https://developer.android.com/reference/kotlin/androidx/annotation/AnimatorRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation/AnimBuilder#enter()` The custom Animation or Animator resource for the enter animation. | android |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/AnimRes @https://developer.android.com/reference/kotlin/androidx/annotation/AnimatorRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation/AnimBuilder#exit()` The custom Animation or Animator resource for the exit animation. | android |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/AnimRes @https://developer.android.com/reference/kotlin/androidx/annotation/AnimatorRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation/AnimBuilder#popEnter()` The custom Animation or Animator resource for the enter animation when popping off the back stack. | android |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/AnimRes @https://developer.android.com/reference/kotlin/androidx/annotation/AnimatorRes https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/navigation/AnimBuilder#popExit()` The custom Animation or Animator resource for the exit animation when popping off the back stack. | android |

## Public constructors

### AnimBuilder

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

```
AnimBuilder()
```

## Public properties

### enter

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

```
var enter: @AnimRes @AnimatorRes Int
```

The custom Animation or Animator resource for the enter animation.

Note: Animator resources are not supported for navigating to a new Activity

### exit

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

```
var exit: @AnimRes @AnimatorRes Int
```

The custom Animation or Animator resource for the exit animation.

Note: Animator resources are not supported for navigating to a new Activity

### popEnter

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

```
var popEnter: @AnimRes @AnimatorRes Int
```

The custom Animation or Animator resource for the enter animation when popping off the back stack.

Note: Animator resources are not supported for navigating to a new Activity

### popExit

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

```
var popExit: @AnimRes @AnimatorRes Int
```

The custom Animation or Animator resource for the exit animation when popping off the back stack.

Note: Animator resources are not supported for navigating to a new Activity