@NavOptionsDsl
public final class AnimBuilder


DSL for setting custom Animation or Animator resources on a NavOptionsBuilder

Summary

Public constructors

Public methods

final int

The custom Animation or Animator resource for the enter animation.

final int

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

The custom Animation or Animator resource for the enter animation.

final void

The custom Animation or Animator resource for the exit animation.

final void

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

final void

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

Public constructors

AnimBuilder

Added in 1.0.0
public AnimBuilder()

Public methods

getEnter

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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

Added in 1.0.0
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