# FragmentNavigator.Extras

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/navigation/fragment/FragmentNavigator.Extras "View this page in Java")

<br />

```
class FragmentNavigator.Extras : Navigator.Extras
```

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                               ### Nested types                                                                                                                                                |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `class `[FragmentNavigator.Extras.Builder](https://developer.android.com/reference/kotlin/androidx/navigation/fragment/FragmentNavigator.Extras.Builder) Builder for constructing new[Extras](https://developer.android.com/reference/kotlin/androidx/navigation/fragment/FragmentNavigator.Extras)instances. |

|                                                                                                                  ### Public properties                                                                                                                   |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)`<`[View](https://developer.android.com/reference/android/view/View.html)`, `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)`>` | [sharedElements](https://developer.android.com/reference/kotlin/androidx/navigation/fragment/FragmentNavigator.Extras#sharedElements()) The map of shared elements associated with these Extras. |

## Public properties

### sharedElements

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

```
val sharedElements: Map<View, String>
```

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