@NavOptionsDsl
class AnimBuilder


DSL for setting custom Animation or Animator resources on a NavOptionsBuilder

Summary

Public constructors

Public properties

@AnimRes @AnimatorRes Int

The custom Animation or Animator resource for the enter animation.

@AnimRes @AnimatorRes Int

The custom Animation or Animator resource for the exit animation.

@AnimRes @AnimatorRes Int

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

@AnimRes @AnimatorRes Int

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

Public constructors

AnimBuilder

Added in 1.0.0
AnimBuilder()

Public properties

enter

Added in 1.0.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

Added in 1.0.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

Added in 1.0.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

Added in 1.0.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