{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RotaryScrollEvent


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.

Summary

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn
open String
Cmn

Public properties

Float

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

Cmn
Long

The time in milliseconds at which this even occurred.

Cmn
Float

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

Cmn

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

horizontalScrollPixels

val horizontalScrollPixelsFloat

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

uptimeMillis

val uptimeMillisLong

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

verticalScrollPixels

val verticalScrollPixelsFloat

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