AnimBuilder
@NavOptionsDsl
public final class AnimBuilder
DSL for setting custom Animation or Animator resources on a NavOptionsBuilder
Summary
Public constructors |
|---|
Public methods |
|
|---|---|
final int |
getEnter()The custom Animation or Animator resource for the enter animation. |
final int |
getExit()The custom Animation or Animator resource for the exit animation. |
final int |
The custom Animation or Animator resource for the enter animation when popping off the back stack. |
final int |
The custom Animation or Animator resource for the exit animation when popping off the back stack. |
final void |
setEnter(@AnimRes @AnimatorRes int enter)The custom Animation or Animator resource for the enter animation. |
final void |
setExit(@AnimRes @AnimatorRes int exit)The custom Animation or Animator resource for the exit animation. |
final void |
setPopEnter(@AnimRes @AnimatorRes int popEnter)The custom Animation or Animator resource for the enter animation when popping off the back stack. |
final void |
setPopExit(@AnimRes @AnimatorRes int popExit)The custom Animation or Animator resource for the exit animation when popping off the back stack. |
Public constructors
Public methods
getEnter
public final int getEnter()
The custom Animation or Animator resource for the enter animation.
Note: Animator resources are not supported for navigating to a new Activity
getExit
public final int getExit()
The custom Animation or Animator resource for the exit animation.
Note: Animator resources are not supported for navigating to a new Activity
getPopEnter
public final int getPopEnter()
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
getPopExit
public final int getPopExit()
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
setEnter
public final void setEnter(@AnimRes @AnimatorRes int enter)
The custom Animation or Animator resource for the enter animation.
Note: Animator resources are not supported for navigating to a new Activity
setExit
public final void setExit(@AnimRes @AnimatorRes int exit)
The custom Animation or Animator resource for the exit animation.
Note: Animator resources are not supported for navigating to a new Activity
setPopEnter
public final void setPopEnter(@AnimRes @AnimatorRes int popEnter)
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
setPopExit
public final void setPopExit(@AnimRes @AnimatorRes int popExit)
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