Object

SharedTransitionDefaults.SharedContentConfig

Default SharedContentConfig used in SharedTransitionScope.rememberSharedContentState.

Source set: Common
public object SharedContentConfig : SharedTransitionScope.SharedContentConfig

Default SharedContentConfig used in SharedTransitionScope.rememberSharedContentState. This default SharedTransitionScope.SharedContentConfig enables shared elements and bounds, and keeps them enabled while the animation is in-flight. It also sets the alternativeTargetBoundsInTransitionScopeAfterRemoval to null, ensuring the shared element transition is canceled immediately if the incoming shared element is removed during the animation.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: