Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

AnimBuilder

class AnimBuilder
kotlin.Any
   ↳ androidx.navigation.AnimBuilder

DSL for setting custom Animation or Animator resources on a NavOptionsBuilder

Summary

Public constructors

DSL for setting custom Animation or Animator resources on a NavOptionsBuilder

Properties
Int

The custom Animation or Animator resource for the enter animation.

Int

The custom Animation or Animator resource for the exit animation.

Int

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

Int

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

Public constructors

<init>

AnimBuilder()

DSL for setting custom Animation or Animator resources on a NavOptionsBuilder

Properties

enter

var enter: Int

The custom Animation or Animator resource for the enter animation.

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

exit

var exit: Int

The custom Animation or Animator resource for the exit animation.

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

popEnter

var popEnter: 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

var popExit: 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