Class

SharedTransitionScope.DeferredTransitionBehavior

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

Source set: Common
public class DeferredTransitionBehavior internal constructor(private val value: Int)

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

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
public companion object

Properties

FollowContainer

Source set: Common
public val FollowContainer: DeferredTransitionBehavior = DeferredTransitionBehavior(0)

The shared element visually transforms (scale, offset) with its parent container during the deferred phase of a DeferredTransition, appearing attached to its parent container until the transition switches to the automatic phase.

Static

Source set: Common
public val Static: DeferredTransitionBehavior = DeferredTransitionBehavior(1)

The shared element detaches from its parent container's manual transformations and remains static at its initial bounds during the deferred phase of a DeferredTransition.

SeekToTarget

Source set: Common
public val SeekToTarget: DeferredTransitionBehavior = DeferredTransitionBehavior(2)

The shared element detaches from its parent container's manual transformations and interpolates between its initial and target bounds according to MutableContentTransform.sharedElementProgress during the deferred phase of a DeferredTransition. If MutableContentTransform.sharedElementProgress is not configured, the element remains at its initial bounds.

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: