NestedScrollSource

Class

Common
value class NestedScrollSource internal constructor(@Suppress("unused") private val value: Int)

Possible sources of scroll events in the NestedScrollConnection

Companion Object

Properties

Common
val UserInput: NestedScrollSource

Represents any source of scroll events originated from a user interaction: mouse, touch, key events.

Common
val SideEffect: NestedScrollSource

Represents any other source of scroll events that are not a direct user input. (e.g animations, fling)

Common

Deprecated This has been replaced by UserInput.

@Deprecated(
        "This has been replaced by .",
        replaceWith =
            ReplaceWith(
                "NestedScrollSource.",
                "import androidx.compose.ui.input.nestedscroll." +
                    "NestedScrollSource.Companion.",
            ),
    )
    val Drag: NestedScrollSource

Dragging via mouse/touch/etc events.

Common

Deprecated This has been replaced by SideEffect.

@Deprecated(
        "This has been replaced by .",
        replaceWith =
            ReplaceWith(
                "NestedScrollSource.",
                "import androidx.compose.ui.input.nestedscroll." +
                    "NestedScrollSource.Companion.",
            ),
    )
    val Fling: NestedScrollSource

Flinging after the drag has ended with velocity.

Common

Deprecated Do not use. Will be removed in the future.

val Relocate: NestedScrollSource

Relocating when a component asks parents to scroll to bring it into view.

Common

Deprecated This has been replaced by UserInput.

@Deprecated(
        "This has been replaced by .",
        replaceWith =
            ReplaceWith(
                "NestedScrollSource.",
                "import androidx.compose.ui.input.nestedscroll." +
                    "NestedScrollSource.Companion.",
            ),
    )
    val Wheel: NestedScrollSource

Scrolling via mouse wheel.