# HapticFeedbackType

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/hapticfeedback/HapticFeedbackType.kt+class:androidx.compose.ui.hapticfeedback.HapticFeedbackType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  value class HapticFeedbackType
  ```

*** ** * ** ***

Constants to be used to perform haptic feedback effects via `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedback#performHapticFeedback(androidx.compose.ui.hapticfeedback.HapticFeedbackType)`.

## Summary

| ### Public companion functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#values()()` Returns a list of possible values of `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType`. | Cmn |

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#Confirm()` A haptic effect to signal the confirmation or successful completion of a user interaction.. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#ContextClick()` The user has performed a context click on an object. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#GestureEnd()` The user has finished a gesture (e.g. on the soft keyboard). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#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. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#KeyboardTap()` The user has pressed a soft keyboard key. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#LongPress()` The user has performed a long press on an object that is resulting in an action being performed. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#Reject()` A haptic effect to signal the rejection or failure of a user interaction. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#SegmentFrequentTick()` The user is switching between a series of many potential choices, for example minutes on a clock face, or individual percentages. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#SegmentTick()` The user is switching between a series of potential choices, for example items in a list or discrete points on a slider. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#TextHandleMove()` The user has performed a selection/insertion handle move on text field. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#ToggleOff()` The user has toggled a switch or button into the off position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#ToggleOn()` The user has toggled a switch or button into the on position. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#VirtualKey()` The user has pressed on a virtual on-screen key. | Cmn |

| ### Public constructors |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#HapticFeedbackType(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` | Cmn |

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType#toString()()` | Cmn |

## Public companion functions

### values

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

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

Returns a list of possible values of `https://developer.android.com/reference/kotlin/androidx/compose/ui/hapticfeedback/HapticFeedbackType`.

## Public companion properties

### Confirm

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val Confirm: HapticFeedbackType
```

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

### ContextClick

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val ContextClick: HapticFeedbackType
```

The user has performed a context click on an object.

### GestureEnd

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val GestureEnd: HapticFeedbackType
```

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

### GestureThresholdActivate

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val GestureThresholdActivate: HapticFeedbackType
```

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.

### KeyboardTap

Cmn Added in [1.9.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.9.0)

```
val KeyboardTap: HapticFeedbackType
```

The user has pressed a soft keyboard key.

### LongPress

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val LongPress: HapticFeedbackType
```

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

### Reject

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val Reject: HapticFeedbackType
```

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

### SegmentFrequentTick

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val SegmentFrequentTick: HapticFeedbackType
```

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

### SegmentTick

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val SegmentTick: HapticFeedbackType
```

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

### TextHandleMove

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val TextHandleMove: HapticFeedbackType
```

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

### ToggleOff

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val ToggleOff: HapticFeedbackType
```

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

### ToggleOn

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val ToggleOn: HapticFeedbackType
```

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

### VirtualKey

Cmn Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
val VirtualKey: HapticFeedbackType
```

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

## Public constructors

### HapticFeedbackType

Cmn Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.2.0)

```
HapticFeedbackType(value: Int)
```

## Public functions

### toString

Cmn

```
open fun toString(): String
```