---
title: "HapticFeedbackType"
description: "Constants to be used to perform haptic feedback effects via
[HapticFeedback.performHapticFeedback]."
type: "class"
---

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


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

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


```kotlin
value class HapticFeedbackType(internal val value: Int)
```


Constants to be used to perform haptic feedback effects via
`HapticFeedback.performHapticFeedback`.


## Companion Object

#### Properties

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


```kotlin
val Confirm
```


A haptic effect to signal the confirmation or successful completion of a user
interaction..



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


```kotlin
val ContextClick
```


The user has performed a context click on an object.



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


```kotlin
val GestureEnd
```


The user has finished a gesture (e.g. on the soft keyboard).



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


```kotlin
val GestureThresholdActivate
```


The user is executing a swipe/drag-style gesture, such as pull-to-refresh, where the
gesture action is eligible at a certain threshold of movement, and can be cancelled by
moving back past the threshold.



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


```kotlin
val KeyboardTap
```


The user has pressed a soft keyboard key.



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


```kotlin
val LongPress
```


The user has performed a long press on an object that is resulting in an action being
performed.



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


```kotlin
val Reject
```


A haptic effect to signal the rejection or failure of a user interaction.



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


```kotlin
val SegmentFrequentTick
```


The user is switching between a series of many potential choices, for example minutes on
a clock face, or individual percentages.



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


```kotlin
val SegmentTick
```


The user is switching between a series of potential choices, for example items in a list
or discrete points on a slider.



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


```kotlin
val TextHandleMove
```


The user has performed a selection/insertion handle move on text field.



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


```kotlin
val ToggleOff
```


The user has toggled a switch or button into the off position.



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


```kotlin
val ToggleOn
```


The user has toggled a switch or button into the on position.



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


```kotlin
val VirtualKey
```


The user has pressed on a virtual on-screen key.



#### Methods

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


```kotlin
fun values(): List<HapticFeedbackType>
```


Returns a list of possible values of `HapticFeedbackType`.





