Class

PointerEvent

Describes a pointer input change event that has occurred at a particular point in time.

Source set: Common
public class PointerEvent internal constructor(
    changes: List<PointerInputChange>,
    internalPointerEvent: InternalPointerEvent?,
)

Describes a pointer input change event that has occurred at a particular point in time.

Properties

changes

Source set: Common
public val changes: List<PointerInputChange>

The changes.

buttons

Source set: Common
public val buttons: PointerButtons

The state of buttons (e.g. mouse or stylus buttons) during this event.

keyboardModifiers

Source set: Common
public val keyboardModifiers: PointerKeyboardModifiers

The state of modifier keys during this event.

type

Source set: Common
public var type: PointerEventType

The primary reason the PointerEvent was sent.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: