@ExperimentalDeferredTransitionApi
public class MutableContentTransform
@PublishedApi
internal constructor(
initialVeilMatchParentSize: Boolean,
targetVeilMatchParentSize: Boolean,
initialOffsetVelocityProvider: (() -> Offset)?,
targetOffsetVelocityProvider: (() -> Offset)?,
)
An object that allows manual manipulation of both entering and exiting content during the deferred phase (initiated by DeferredTransitionState.defer) of an AnimatedContent transition.
Use initialContentTransform to define transformations for the exiting (initial) content and targetContentTransform for the entering (target) content.
Functions
initialContentTransform
public fun initialContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit)
Define the manual transformation to apply to the exiting content during the deferred phase.
Parameters
| block | A lambda that applies transformations to the provided TransformScope. |
targetContentTransform
public fun targetContentTransform(block: TransformScope.(fullSize: IntSize) -> Unit)
Define the manual transformation to apply to the entering content during the deferred phase.
Parameters
| block | A lambda that applies transformations to the provided TransformScope. |