# FragmentNavigator.Extras

Artifact: [androidx.navigation:navigation-fragment](https://developer.android.com/jetpack/androidx/releases/navigation) [View Source](https://cs.android.com/search?q=file:androidx/navigation/fragment/FragmentNavigator.kt+class:androidx.navigation.fragment.FragmentNavigator.Extras) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation#1.0.0)

*** ** * ** ***


```
public final class FragmentNavigator.Extras implements Navigator.Extras
```

<br />

*** ** * ** ***

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

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/navigation/fragment/FragmentNavigator.Extras.Builder` Builder for constructing new `https://developer.android.com/reference/androidx/navigation/fragment/FragmentNavigator.Extras` instances. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/util/Map.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/view/View.html, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>` | `https://developer.android.com/reference/androidx/navigation/fragment/FragmentNavigator.Extras#getSharedElements()()` The map of shared elements associated with these Extras. |

## Public methods

### getSharedElements

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/navigation#1.0.0)

```
public final @NonNull Map<@NonNull View, @NonNull String> getSharedElements()
```

The map of shared elements associated with these Extras. The returned map is an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html` copy of the underlying map and should be treated as immutable.