androidx.compose.material3.adaptive.layout
PaneScaffoldMotionDataProviderSince 1.1Experimental
Sealed interface · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0
No hand-written docs yet.
Scope for performing pane motions within a pane scaffold. It provides the spec and necessary info to decide a pane's EnterTransition and ExitTransition, as well as how bounds morphing will be performed.
sealed interface PaneScaffoldMotionDataProvider<Role : PaneScaffoldRole>
How to get one
Ready-made values and functions that return it
Properties
scaffoldSize
val scaffoldSize: IntSize
The scaffold's current size. Note that the value of the field will only be updated during measurement of the scaffold and before the first measurement the value will be IntSize.Zero.
count
val count: Int
The number of PaneMotionData stored in the provider.
Functions
getRoleAt
fun getRoleAt(index: Int): Role
Returns the role of the pane at the given index.
get
fun get(role: Role): PaneMotionData
Returns PaneMotionData associated with the given pane scaffold role.
fun get(index: Int): PaneMotionData
Returns PaneMotionData associated with the given index, in the left-to-right order of the panes in the scaffold.
Library docs
Scope for performing pane motions within a pane scaffold. It provides the spec and necessary info
to decide a pane's EnterTransition and ExitTransition, as well as how bounds morphing will be
performed.