🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

NestedScrollSource

Possible sources of scroll events in the NestedScrollConnection

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

Possible sources of scroll events in the NestedScrollConnection

Members

Companion

Source set: Common
public companion object

Properties

UserInput

Source set: Common
public val UserInput: NestedScrollSource

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

SideEffect

Source set: Common
public val SideEffect: NestedScrollSource

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

Drag

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

Dragging via mouse/touch/etc events.

Fling

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

Flinging after the drag has ended with velocity.

Relocate

Source set: Common
@Deprecated("Do not use. Will be removed in the future.")
        public val Relocate: NestedScrollSource

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

Wheel

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

Scrolling via mouse wheel.