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

RotaryScrollEvent

public final class 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 methods

boolean
equals(Object other)
final float

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

final long

The time in milliseconds at which this even occurred.

final float

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

int
@NonNull String

Public methods

equals

public boolean equals(Object other)

getHorizontalScrollPixels

public final float getHorizontalScrollPixels()

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

getUptimeMillis

public final long getUptimeMillis()

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

getVerticalScrollPixels

public final float getVerticalScrollPixels()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()