PointerEventType


Indicates the primary reason that the PointerEvent was sent.

Summary

Public companion properties

PointerEventType

The cursor has entered the input region.

Cmn
PointerEventType

A cursor device or elevated stylus exited the input region.

Cmn
PointerEventType

The cursor or one or more touch pointers was moved.

Cmn
PointerEventType

A button on the device was pressed or a new pointer was detected.

Cmn
PointerEventType

A button on the device was released or a pointer was raised.

Cmn
PointerEventType

A scroll event was sent.

Cmn
PointerEventType

An unknown reason for the event.

Cmn

Public functions

open String
Cmn

Public companion properties

Enter

val EnterPointerEventType

The cursor has entered the input region. This will only be sent after the cursor is hovering when in the input region.

For example, the user's cursor is outside the input region and presses the button prior to entering the input region. The Enter event will be sent when the button is released inside the input region.

Exit

val ExitPointerEventType

A cursor device or elevated stylus exited the input region. This will only follow an Enter event, so if a cursor with the button pressed enters and exits region, neither Enter nor Exit will be sent for the input region. However, if a cursor enters the input region, then a button is pressed, then the cursor exits and reenters, Enter, Exit, and Enter will be received.

Move

val MovePointerEventType

The cursor or one or more touch pointers was moved.

Press

val PressPointerEventType

A button on the device was pressed or a new pointer was detected.

Release

val ReleasePointerEventType

A button on the device was released or a pointer was raised.

Scroll

val ScrollPointerEventType

A scroll event was sent. This can happen, for example, due to a mouse scroll wheel. This event indicates that the PointerInputChange.scrollDelta's Offset is non-zero.

Unknown

val UnknownPointerEventType

An unknown reason for the event.

Public functions

toString

open fun toString(): String