Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
fun interface SwipeConstraint
Link copied to clipboard
sealed interface SwipeDirection
Link copied to clipboard
data class SwipeThresholds(val activation: Dp?, val confirmationMinDistance: Dp, val confirmationVelocity: Dp, val offAxisCancellation: Dp)

Functions

Link copied to clipboard
fun Modifier.swipeable(detectionConstraint: SwipeConstraint, confirmationConstraint: SwipeConstraint = detectionConstraint, onStart: GestureScope.(direction: SwipeDirection) -> Unit, onProgress: GestureScope.(delta: Offset, uptimeMillis: Long, activationDirection: SwipeDirection) -> Unit, onConfirm: GestureScope.(velocity: Velocity, direction: SwipeDirection) -> Unit, onCancel: GestureScope.(velocity: Velocity) -> Unit, thresholds: SwipeThresholds = SwipeThresholds.Companion.Default, willProcess: (PointerType) -> Boolean = defaultWillProcess, interactionSource: MutableInteractionSource? = null, key: Any = Unit): Modifier