navigation/common/src/main/java/androidx/navigation/NavOptions.java
public static void addPopAnimationsToIntent(@NonNull Intent intent,
            @Nullable NavOptions navOptions) {
        if (navOptions != null) {
            intent.putExtra(KEY_NAV_OPTIONS, navOptions.toBundle());
        }
    }
/**
     * Add the {@link #getPopEnterAnim() pop enter} and {@link #getPopExitAnim() pop exit}
     * animation to an Intent for later usage with
     * {@link #applyPopAnimationsToPendingTransition(Activity)}.
     * <p>
     * This is automatically called for you by {@link ActivityNavigator}.
     * </p>
     *
     * @param intent Intent being started with the given NavOptions
     * @param navOptions NavOptions containing the pop animations.
     * @see #applyPopAnimationsToPendingTransition(Activity)
     * @see #getPopEnterAnim()
     * @see #getPopExitAnim()
     */
Add the  #getPopEnterAnim() pop enter and  #getPopExitAnim() pop exit
animation to an Intent for later usage with
#applyPopAnimationsToPendingTransition(Activity).

This is automatically called for you by  ActivityNavigator.

@param intent Intent being started with the given NavOptions
@param navOptions NavOptions containing the pop animations.
Add the #getPopEnterAnim () pop enter and #getPopExitAnim () pop exit animation to an Intent for later usage with #applyPopAnimationsToPendingTransition ( Activity ) . This is automatically called for you by ActivityNavigator . @param intent Intent being started with the given NavOptions @param navOptions NavOptions containing the pop animations .
public static void addPopAnimationsToIntent(@NonNull Intent intent,
            @Nullable NavOptions navOptions) {
        if (navOptions != null) {
            intent.putExtra(KEY_NAV_OPTIONS, navOptions.toBundle());
        }
    }
public static void addPopAnimationsToIntent ( @ NonNull Intent intent , @ Nullable NavOptions navOptions ) { if ( navOptions != null ) { intent . putExtra ( KEY_NAV_OPTIONS , navOptions . toBundle ( ) ) ; } }
Add the {@link #getPopEnterAnim() pop enter} and {@link #getPopExitAnim() pop exit}
 animation to an Intent for later usage with
 {@link #applyPopAnimationsToPendingTransition(Activity)}.
Add the { @link #getPopEnterAnim () pop enter } and { @link #getPopExitAnim () pop exit } animation to an Intent for later usage with { @link #applyPopAnimationsToPendingTransition ( Activity ) } .