SharedTransitionDefaults.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.

Summary

Inherited functions

From androidx.compose.animation.SharedTransitionScope.SharedContentConfig
open Rect?
SharedTransitionScope.SharedContentState.alternativeTargetBoundsInTransitionScopeAfterRemoval(
    targetBoundsBeforeRemoval: Rect,
    sharedTransitionLayoutSize: Size
)

alternativeTargetBoundsInTransitionScopeAfterRemoval 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
open SharedTransitionScope.DeferredTransitionBehavior

Defines how the shared element behaves during the deferred phase of a DeferredTransition.

Cmn
open Boolean

isEnabled returns a boolean indicating whether the shared element is enabled.

Cmn
open Boolean

This property is deprecated. Override deferredTransitionBehavior instead: return DeferredTransitionBehavior.Static for false, or DeferredTransitionBehavior.FollowContainer for true.

Cmn
open Boolean

shouldKeepEnabledForOngoingAnimation returns a boolean indicating whether the shared element should be enabled for ongoing animation.

Cmn