Start native apps faster with the Composables CLI ->
Interface

PaneMotion

Interface to specify a custom pane enter/exit motion when a pane's visibility changes.

Source set: Common
sealed interface PaneMotion

Interface to specify a custom pane enter/exit motion when a pane's visibility changes.

Properties

type

Source set: Common
val type: Type

The type of the motion, like exiting, entering, etc. See Type.

Members

Type

Source set: Common
class Type private constructor(val value: Int)

Indicates the current type of pane motion, like if the pane is entering or exiting, or is kept showing or hidden.

Functions

toString

Source set: Common
override fun toString(): String

Members

Companion

Source set: Common
companion object

Properties

Hidden

Source set: Common
val Hidden = Type(0)

Indicates the pane is kept hidden during the current motion.

Exiting

Source set: Common
val Exiting = Type(1)

Indicates the pane is exiting or hiding during the current motion.

Entering

Source set: Common
val Entering = Type(2)

Indicates the pane is entering or showing during the current motion.

Shown

Source set: Common
val Shown = Type(3)

Indicates the pane is keeping being shown during the current motion.

ExitingModal

Source set: Common
val ExitingModal = Type(5)

Indicates the pane is exiting or hiding as a modal, i.e., a levitated pane, during the current motion.

EnteringModal

Source set: Common
val EnteringModal = Type(6)

Indicates the pane is entering or showing as a modal, i.e., a levitated pane, during the current motion.

Companion

Source set: Common
companion object

Properties

NoMotion

Source set: Common
val NoMotion: PaneMotion = DefaultImpl("NoMotion", Type.Hidden)

The default pane motion that no animation will be performed.

AnimateBounds

Source set: Common
val AnimateBounds: PaneMotion = DefaultImpl("AnimateBounds", Type.Shown)

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

Source set: Common
val EnterFromLeft: PaneMotion = DefaultImpl("EnterFromLeft", Type.Entering)

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

Source set: Common
val EnterFromRight: PaneMotion = DefaultImpl("EnterFromRight", Type.Entering)

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

Source set: Common
val EnterFromLeftDelayed: PaneMotion = DefaultImpl("EnterFromLeftDelayed", Type.Entering)

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

Source set: Common
val EnterFromRightDelayed: PaneMotion = DefaultImpl("EnterFromRightDelayed", Type.Entering)

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

Source set: Common
val ExitToLeft: PaneMotion = DefaultImpl("ExitToLeft", Type.Exiting)

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

Source set: Common
val ExitToRight: PaneMotion = DefaultImpl("ExitToRight", Type.Exiting)

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

Source set: Common
val EnterWithExpand: PaneMotion = DefaultImpl("EnterWithExpand", Type.Entering)

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

Source set: Common
val ExitWithShrink: PaneMotion = DefaultImpl("ExitWithShrink", Type.Exiting)

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.

EnterAsModal

Source set: Common
val EnterAsModal: PaneMotion = DefaultImpl("EnterAsModal", Type.EnteringModal)

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.

ExitAsModal

Source set: Common
val ExitAsModal: PaneMotion = DefaultImpl("ExitAsModal", Type.ExitingModal)

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.