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

PointerEventType

Indicates the primary reason that the PointerEvent was sent.

Source set: Common
public class PointerEventType private constructor(internal val value: Int)

Indicates the primary reason that the PointerEvent was sent.

Members

Companion

Source set: Common
public companion object

Properties

Unknown

Source set: Common
public val Unknown: PointerEventType

An unknown reason for the event.

Press

Source set: Common
public val Press: PointerEventType

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

Release

Source set: Common
public val Release: PointerEventType

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

Move

Source set: Common
public val Move: PointerEventType

The cursor or one or more touch pointers was moved.

Enter

Source set: Common
public val Enter: PointerEventType

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

Source set: Common
public val Exit: PointerEventType

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.

Scroll

Source set: Common
public val Scroll: PointerEventType

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.

ScaleStart

Source set: Common
public val ScaleStart: PointerEventType

A scale started. This can happen, for example, due to a trackpad gesture recognized by the platform. Such a gesture will start with an event of ScaleStart, followed by some number of ScaleChanges, and finally a ScaleEnd.

ScaleChange

Source set: Common
public val ScaleChange: PointerEventType

An intermediate scale move. This can happen, for example, due to a trackpad gesture recognized by the platform. This event indicates that the PointerInputChange.scaleFactor's Offset may be different from 1.

ScaleEnd

Source set: Common
public val ScaleEnd: PointerEventType

A scale ended. This can happen, for example, due to a trackpad gesture recognized by the platform.

PanStart

Source set: Common
public val PanStart: PointerEventType

A pan started. This can happen, for example, due to a trackpad gesture recognized by the platform. Such a gesture will start with an event type of PanStart, followed by some number of PanMoves, and finally a PanEnd

PanMove

Source set: Common
public val PanMove: PointerEventType

An intermediate pan move. This can happen, for example, due to a trackpad gesture recognized by the platform. This event indicates that the PointerInputChange.panOffset's Offset may be non-zero.

PanEnd

Source set: Common
public val PanEnd: PointerEventType

A pan ended. This can happen, for example, due to a trackpad gesture.