Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

FragmentNavigator.Extras

public static final class FragmentNavigator.Extras
extends Object implements Navigator.Extras

java.lang.Object
   ↳ androidx.navigation.fragment.FragmentNavigator.Extras


Extras that can be passed to FragmentNavigator to enable Fragment specific behavior

Summary

Nested classes

class FragmentNavigator.Extras.Builder

Builder for constructing new FragmentNavigator.Extras instances. 

Public methods

Map<View, String> getSharedElements()

Gets the map of shared elements associated with these Extras.

Inherited methods

Public methods

getSharedElements

public Map<View, String> getSharedElements ()

Gets the map of shared elements associated with these Extras. The returned map is an unmodifiable copy of the underlying map and should be treated as immutable.

Returns
Map<View, String>