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

RotaryScrollEvent

This event represents a rotary input event.

Source set: Android
public class RotaryScrollEvent internal constructor(
    /**
     * The amount to scroll (in pixels) in response to a [RotaryScrollEvent] in a container that can
     * scroll vertically.
     */
    public val verticalScrollPixels: Float,

    /**
     * The amount to scroll (in pixels) in response to a [RotaryScrollEvent] in a container that can
     * scroll horizontally.
     */
    public val horizontalScrollPixels: Float,

    /**
     * The time in milliseconds at which this even occurred. The start (`0`) time is
     * platform-dependent.
     */
    public val uptimeMillis: Long,

    /** The id for the input device that this event came from */
    public val inputDeviceId: Int,
)

This event represents a rotary input event.

Some Wear OS devices contain a physical rotating side button, or a rotating bezel. When the user turns the button or rotates the bezel, a RotaryScrollEvent is sent to the item in focus.

Source set: Common
public class RotaryScrollEvent

This event represents a rotary input event.

Properties

verticalScrollPixels

Source set: Common
public val verticalScrollPixels: Float

The amount to scroll (in pixels) in response to a RotaryScrollEvent in a container that can scroll vertically.

horizontalScrollPixels

Source set: Common
public val horizontalScrollPixels: Float

The amount to scroll (in pixels) in response to a RotaryScrollEvent in a container that can scroll horizontally.

uptimeMillis

Source set: Common
public val uptimeMillis: Long

The time in milliseconds at which this even occurred. The start (0) time is platform-dependent.