Package-level declarations
Types
Link copied to clipboard
interface BackGestureParticipant
Link copied to clipboard
class CupertinoStackAnimation(overlayAlphaPerDepth: Float = CupertinoOverlayAlphaPerDepthDefault, slideSpringDuration: Duration = 320.milliseconds) : BaseItemAnimation<StackAnimationContext> , SwipeCapability
Link copied to clipboard
fun interface DecomposeAnimationFactory<in Configuration : Any, in Child : Any> : ItemAnimationFactory<Child, Configuration, StackAnimationContext>
Link copied to clipboard
Link copied to clipboard
interface PredictiveBackCapability
Link copied to clipboard
class PredictiveBackCapabilityDispatcher(cycleController: StackCycleController) : BaseCapabilityDispatcher<PredictiveBackCapability>
Link copied to clipboard
data class StackAnimationContext(val position: StackItemPosition, val environment: StackAnimationEnvironment)
Link copied to clipboard
data class StackAnimationEnvironment(val viewportSize: Size, val layoutDirection: LayoutDirection, val density: Density)
Link copied to clipboard
class StackGestureParticipant(canPop: () -> Boolean, parent: BackGestureParticipant?, startLocal: () -> Unit, updateLocal: Density.(Offset, Long, SwipeDirection) -> Unit, confirmLocal: Density.(Velocity) -> Unit, cancelLocal: Density.(Velocity) -> Unit) : BackGestureParticipant
Link copied to clipboard
interface SwipeCapability
Link copied to clipboard
class SwipeCapabilityDispatcher(cycleController: StackCycleController) : BaseCapabilityDispatcher<SwipeCapability>
Functions
Link copied to clipboard
fun adaptiveOverlayAlpha(position: StackItemPosition, overlayAlphaPerDepth: Float = AdaptiveOverlayAlphaPerDepthDefault): Float
Link copied to clipboard
fun adaptiveStackAnimation(overlayAlphaPerDepth: Float = CupertinoOverlayAlphaPerDepthDefault, slideSpringDuration: Duration = 320.milliseconds): ItemAnimation<StackAnimationContext>
Link copied to clipboard
fun cupertinoOverlayAlpha(position: StackItemPosition, overlayAlphaPerDepth: Float = AdaptiveOverlayAlphaPerDepthDefault): Float
Link copied to clipboard
fun cupertinoStackAnimation(overlayAlphaPerDepth: Float = CupertinoOverlayAlphaPerDepthDefault, slideSpringDuration: Duration = 320.milliseconds): ItemAnimation<StackAnimationContext>
Link copied to clipboard
fun <Configuration : Any, Child : Any> decomposeAnimations(default: () -> ItemAnimation<StackAnimationContext> = { adaptiveStackAnimation() }): DecomposeAnimationFactory<Configuration, Child>
Creates a DecomposeAnimationFactory with a default animation for all items.
fun <Configuration : Any, Child : Any> decomposeAnimations(selector: (Child) -> ItemAnimation<StackAnimationContext>): DecomposeAnimationFactory<Configuration, Child>
Creates an exhaustive DecomposeAnimationFactory mapping Child to animations.
fun <Configuration : Any, Child : Any> decomposeAnimations(selector: (Configuration, Child) -> ItemAnimation<StackAnimationContext>): DecomposeAnimationFactory<Configuration, Child>
Creates an exhaustive DecomposeAnimationFactory mapping Configuration and Child to animations.
fun <Configuration : Any, Child : Any> decomposeAnimations(default: () -> ItemAnimation<StackAnimationContext>, selector: (Child) -> ItemAnimation<StackAnimationContext>?): DecomposeAnimationFactory<Configuration, Child>
Creates a DecomposeAnimationFactory with a customizable default fallback.
Link copied to clipboard
fun Modifier.decomposeKeyBackHandler(canPop: Boolean, onPop: () -> Unit, predictiveBackDispatcher: PredictiveBackCapabilityDispatcher, animationSpec: AnimationSpec<Float> = smooth(), initialVelocity: Float = 20.0f, scope: CoroutineScope = rememberCoroutineScope()): Modifier
Link copied to clipboard
fun <Configuration : Any, Child : Any> DecomposeStack(stack: Value<ChildStack<Configuration, Child>>, onPop: () -> Unit, modifier: Modifier = Modifier, backHandler: BackHandler? = null, animationFactory: DecomposeAnimationFactory<Configuration, Child> = remember {
DecomposeAnimationFactory()
}, enableGestures: Boolean = true, content: @Composable AnimatedVisibilityScope.(Child) -> Unit)
fun <Configuration : Any, Child : Any> DecomposeStack(stack: Value<ChildStack<Configuration, Child>>, onPop: () -> Unit, animations: (Child) -> ItemAnimation<StackAnimationContext>, modifier: Modifier = Modifier, backHandler: BackHandler? = null, enableGestures: Boolean = true, content: @Composable AnimatedVisibilityScope.(Child) -> Unit)
Link copied to clipboard
Link copied to clipboard
fun <Configuration : Any, Child : Any> rememberDecomposeAnimations(default: () -> ItemAnimation<StackAnimationContext> = { adaptiveStackAnimation() }): DecomposeAnimationFactory<Configuration, Child>
Creates a remembered DecomposeAnimationFactory with a default animation for all items.
fun <Configuration : Any, Child : Any> rememberDecomposeAnimations(selector: (Child) -> ItemAnimation<StackAnimationContext>): DecomposeAnimationFactory<Configuration, Child>
Creates a remembered DecomposeAnimationFactory mapping Child to animations.
fun <Configuration : Any, Child : Any> rememberDecomposeAnimations(selector: (Configuration, Child) -> ItemAnimation<StackAnimationContext>): DecomposeAnimationFactory<Configuration, Child>
Creates a remembered DecomposeAnimationFactory mapping Configuration and Child to animations.
Link copied to clipboard
Link copied to clipboard
fun selectableStackAnimation(swipe: () -> ItemAnimation<StackAnimationContext> = { CupertinoStackAnimation() }, predictiveBack: () -> ItemAnimation<StackAnimationContext> = { MaterialStackAnimation() }): ItemAnimation<StackAnimationContext>
Link copied to clipboard
fun <ItemType> stackAnimationContextFactory(environment: () -> StackAnimationEnvironment): ContextFactory<ItemType, StackAnimationContext, StackCreationContext<ItemType>>
Link copied to clipboard
fun StackBackHandler(backHandler: BackHandler, canPop: Boolean, predictiveBackDispatcher: PredictiveBackCapabilityDispatcher, onPop: () -> Unit)
Link copied to clipboard