Interface

PaneScaffoldTransitionScope

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
@ExperimentalMaterial3AdaptiveApi
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

Common
val scaffoldStateTransition: Transition<ScaffoldValue>

The current scaffold state transition between PaneScaffoldValues.

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

The current motion progress.

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