Package-level declarations

Types

Link copied to clipboard

Miuix default Indication that draws a rectangular overlay when pressed.

Link copied to clipboard

Spring overscroll sharing damping and spring physics with overScrollVertical and overScrollHorizontal. Axes settle independently and coordinate with pull-to-refresh.

Link copied to clipboard

A util class for show popup and dialog.

Link copied to clipboard

Tracks whether overscroll is active.

Link copied to clipboard

Tracks child vertical flings and coordinates PagerInterceptionMode.TapToHalt requests.

Link copied to clipboard

Leaves vertical scroll and velocity to page content, including between pages.

Link copied to clipboard

Horizontal pager behavior when a child scrollable is flinging or overscrolling.

Link copied to clipboard

The type of visual feedback to apply when the component is pressed.

Link copied to clipboard
data class SinkFeedback(val sinkAmount: Float = 0.94f, val animationSpec: AnimationSpec<Float> = spring(0.8f, 600f)) : IndicationNodeFactory
Link copied to clipboard
data class TiltFeedback(val tiltAmount: Float = 8.0f, val animationSpec: AnimationSpec<Float> = spring(0.6f, 400f)) : IndicationNodeFactory

Properties

Link copied to clipboard

Shared overscroll state for scroll and pull-to-refresh coordination.

Link copied to clipboard

Spring spec shared by pager tab navigation and snap fling.

Functions

Link copied to clipboard
fun Modifier.horizontalPagerSwipeOverride(pagerState: PagerState, enabled: Boolean = true, onIntercepted: () -> Unit? = null): Modifier

Drives horizontal drag and settling in one PagerState.scroll mutation. New touches take over at the displayed position; vertical gestures stay with children.

Link copied to clipboard
fun Modifier.iosStyleMomentumHalt(flingTracker: PagerFlingTrackerConnection, enabled: Boolean = true, onHalted: () -> Unit? = null): Modifier

Requests a child fling halt on touch down and consumes that gesture's horizontal drag. When no child fling is active, leaves horizontal swipes to the native pager.

Link copied to clipboard
fun Modifier.overScrollHorizontal(nestedScrollToParent: Boolean = true, isEnabled: () -> Boolean = { true }): Modifier
Link copied to clipboard
fun Modifier.overScrollOutOfBound(isVertical: Boolean = true, nestedScrollToParent: Boolean = true, isEnabled: () -> Boolean = { true }): Modifier

Overscroll effect when scrolling to the boundary.

Link copied to clipboard
fun Modifier.overScrollVertical(nestedScrollToParent: Boolean = true, isEnabled: () -> Boolean = { true }): Modifier
Link copied to clipboard
fun Modifier.pagerGestureOverride(pagerState: PagerState, mode: Int, enabled: Boolean = true, onTriggered: () -> Unit? = null): Modifier
fun Modifier.pagerGestureOverride(pagerState: PagerState, mode: Int, enabled: Boolean = true, flingTracker: PagerFlingTrackerConnection? = null, onTriggered: () -> Unit? = null): Modifier

Accepts a stored mode ordinal; invalid values select PagerInterceptionMode.Native.

fun Modifier.pagerGestureOverride(pagerState: PagerState, mode: PagerInterceptionMode = PagerInterceptionMode.CrossAxisInterceptor, enabled: Boolean = true, onTriggered: () -> Unit? = null): Modifier

Applies mode with a remembered PagerFlingTrackerConnection. See horizontalPagerSwipeOverride for Cross-Axis pager configuration.

fun Modifier.pagerGestureOverride(pagerState: PagerState, mode: PagerInterceptionMode = PagerInterceptionMode.CrossAxisInterceptor, enabled: Boolean = true, flingTracker: PagerFlingTrackerConnection? = null, onTriggered: () -> Unit? = null): Modifier

Applies mode to a HorizontalPager.

Link copied to clipboard
fun Modifier.pressable(interactionSource: MutableInteractionSource?, indication: Indication? = null, enabled: Boolean = true, role: Role? = null, delay: Long? = TAP_INDICATION_DELAY): Modifier

Configure component to receive press via accessibility "press" event.

Link copied to clipboard
fun Modifier.scrollEndHaptic(hapticFeedbackType: HapticFeedbackType = HapticFeedbackType.TextHandleMove): Modifier

Applies a haptic feedback effect when a scrollable container is flung to its boundaries.

Link copied to clipboard
suspend fun PagerState.springAnimateToPage(target: Int)

Animates to target using PagerNavigationSpringSpec after the first layout. Uses MutatePriority.UserInput so focus scrolling cannot interrupt the animation.

Link copied to clipboard
actual fun WindowNavigationEventScope(content: () -> Unit)

Rebinds back-event handling to the platform window hosting content.

Rebinds back-event handling to the platform window hosting content.

actual fun WindowNavigationEventScope(content: () -> Unit)

Rebinds back-event handling to the platform window hosting content.