Function

MutableContentTransform

Creates a MutableContentTransform and applies the provided configuration block.

MutableContentTransform

Source set: Common
public inline fun MutableContentTransform(
    initialVeilMatchParentSize: Boolean = false,
    targetVeilMatchParentSize: Boolean = false,
    noinline initialOffsetVelocityProvider: (() -> Offset)? = null,
    noinline targetOffsetVelocityProvider: (() -> Offset)? = null,
    block: MutableContentTransform.() -> Unit = {},
): MutableContentTransform

Creates a MutableContentTransform and applies the provided configuration block.

Parameters

initialVeilMatchParentSize Whether the initial content's veil should match the parent size.
targetVeilMatchParentSize Whether the target content's veil should match the parent size.
initialOffsetVelocityProvider The velocity of the offset change for the exiting content in pixels/sec. If null, the system will automatically calculate the velocity based on TransformScope.offset changes during the deferred phase.
targetOffsetVelocityProvider The velocity of the offset change for the entering content in pixels/sec. If null, the system will automatically calculate the velocity based on TransformScope.offset changes during the deferred phase.
block A configuration block to set up the transformations for initial and target content.
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: