androidx.compose.material3.adaptive.layout
PaneMotionSince 1.1Experimental
Sealed interface · from org.jetbrains.compose.material3.adaptive:adaptive-layout:1.3.0
No hand-written docs yet.
Interface to specify a custom pane enter/exit motion when a pane's visibility changes.
sealed interface PaneMotion
How to get one
Ready-made values and functions that return it
Properties
type
val type: Type
The type of the motion, like exiting, entering, etc. See Type.
NoMotion
val NoMotion: PaneMotion
The default pane motion that no animation will be performed.
AnimateBounds
val AnimateBounds: PaneMotion
The default pane motion that will animate panes bounds with the given animation specs during motion. Note that this should only be used when the associated pane is keeping showing during the motion.
EnterFromLeft
val EnterFromLeft: PaneMotion
The default pane motion that will slide panes in from left. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromRight
val EnterFromRight: PaneMotion
The default pane motion that will slide panes in from right. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromLeftDelayed
val EnterFromLeftDelayed: PaneMotion
The default pane motion that will slide panes in from left with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
EnterFromRightDelayed
val EnterFromRightDelayed: PaneMotion
The default pane motion that will slide panes in from right with a delay, usually to avoid the interference of other exiting panes. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
ExitToLeft
val ExitToLeft: PaneMotion
The default pane motion that will slide panes out to left. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
ExitToRight
val ExitToRight: PaneMotion
The default pane motion that will slide panes out to right. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
EnterWithExpand
val EnterWithExpand: PaneMotion
The default pane motion that will expand panes from a zero size. Note that this should only be used when the associated pane is entering - i.e. becoming visible from a hidden state.
ExitWithShrink
val ExitWithShrink: PaneMotion
The default pane motion that will shrink panes until it's gone. Note that this should only be used when the associated pane is exiting - i.e. becoming hidden from a visible state.
EnterAsModalSince 1.2
val EnterAsModal: PaneMotion
The default pane motion that will show the pane as a modal. Note that this should only be used when the associated pane is entering into a levitated state from a hidden state.
ExitAsModalSince 1.2
val ExitAsModal: PaneMotion
The default pane motion that will hide the pane as a modal. Note that this should only be used when the associated pane is exiting from a leviated state to a hidden state.
Nested types
Library docs
Interface to specify a custom pane enter/exit motion when a pane's visibility changes.