🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

PaneScaffoldTransitionScope

The transition scope of pane scaffold implementations, which provides the current transition info of the associated pane scaffold.

Source set: Common
public sealed interface PaneScaffoldTransitionScope<
    Role : PaneScaffoldRole,
    ScaffoldValue : PaneScaffoldValue<Role>,
>

The transition scope of pane scaffold implementations, which provides the current transition info of the associated pane scaffold.

Properties

scaffoldStateTransition

Source set: Common
public val scaffoldStateTransition: Transition<ScaffoldValue>

The current scaffold state transition between PaneScaffoldValues.

motionProgress

Source set: Common
@get:FloatRange(from = 0.0, to = 1.0) public val motionProgress: Float

The current motion progress.

motionDataProvider

Source set: Common
public val motionDataProvider: PaneScaffoldMotionDataProvider<Role>

Provides measurement and other data required in motion calculation like the size and offset of each pane before and after the motion.

Note that the data provided are supposed to be only read proactively by the motion logic "on-the-fly" when the scaffold motion is happening. Using them elsewhere may cause unexpected behavior.

Content updated: