---
title: "PointerEventType"
description: "Indicates the primary reason that the [PointerEvent] was sent."
type: "class"
---

<div class='type'>Class</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class PointerEventType private constructor(internal val value: Int)
```


Indicates the primary reason that the `PointerEvent` was sent.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Unknown = PointerEventType(0)
```


An unknown reason for the event.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Press = PointerEventType(1)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Release = PointerEventType(2)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Move = PointerEventType(3)
```


The cursor or one or more touch pointers was moved.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Enter = PointerEventType(4)
```


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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Exit = PointerEventType(5)
```


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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Scroll = PointerEventType(6)
```


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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val ScaleStart = PointerEventType(7)
```


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 `ScaleChange`s, and finally a `ScaleEnd`.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val ScaleChange = PointerEventType(8)
```


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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val ScaleEnd = PointerEventType(9)
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val PanStart = PointerEventType(10)
```


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 `PanMove`s, and finally a `PanEnd`



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val PanMove = PointerEventType(11)
```


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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val PanEnd = PointerEventType(12)
```


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





