# SharedTransitionDefaults.SharedContentConfig

Artifact: [androidx.compose.animation:animation](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/SharedTransitionScope.kt+class:androidx.compose.animation.SharedTransitionDefaults.SharedContentConfig) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.10.0) Common/AllAndroid/JVM
- Cmn

  ```
  object SharedTransitionDefaults.SharedContentConfig : SharedTransitionScope.SharedContentConfig
  ```

*** ** * ** ***

Default SharedContentConfig used in `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope#rememberSharedContentState(kotlin.Any)`. This default `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig` enables shared elements and bounds, and keeps them enabled while the animation is in-flight. It also sets the `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#(androidx.compose.animation.SharedTransitionScope.SharedContentState).alternativeTargetBoundsInTransitionScopeAfterRemoval(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Size)` to null, ensuring the shared element transition is canceled immediately if the incoming shared element is removed during the animation.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig` |   |

## Summary

| ### Inherited functions |
|---|
| From [androidx.compose.animation.SharedTransitionScope.SharedContentConfig](https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig) |---|---|---| | `open https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect?` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentState.https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#(androidx.compose.animation.SharedTransitionScope.SharedContentState).alternativeTargetBoundsInTransitionScopeAfterRemoval(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Size)( targetBoundsBeforeRemoval: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, sharedTransitionLayoutSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size )` `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#(androidx.compose.animation.SharedTransitionScope.SharedContentState).alternativeTargetBoundsInTransitionScopeAfterRemoval(androidx.compose.ui.geometry.Rect,androidx.compose.ui.geometry.Size)` returns an alternative target bounds for when the target shared element is disposed amid animation (e.g., scrolled out of the viewport and subsequently disposed). | Cmn | |

| ### Inherited properties |
|---|
| From [androidx.compose.animation.SharedTransitionScope.SharedContentConfig](https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig) |---|---|---| | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentState.https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#(androidx.compose.animation.SharedTransitionScope.SharedContentState).isEnabled()` `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#(androidx.compose.animation.SharedTransitionScope.SharedContentState).isEnabled()` returns a boolean indicating whether the shared element is enabled. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/animation/core/ExperimentalDeferredTransitionApi https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#permitTransformDuringDeferredTransition()` `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#permitTransformDuringDeferredTransition()` defines whether the shared element should take part in the manual transformations applied to its container during the deferred phase of a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/DeferredTransition`. | Cmn | | `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#shouldKeepEnabledForOngoingAnimation()` `https://developer.android.com/reference/kotlin/androidx/compose/animation/SharedTransitionScope.SharedContentConfig#shouldKeepEnabledForOngoingAnimation()` returns a boolean indicating whether the shared element should be enabled for ongoing animation. | Cmn | |