Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions) Summary: [Methods](https://developer.android.com/reference/com/google/wear/input/WearHapticFeedbackConstants#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/com/google/wear/input/WearHapticFeedbackConstants#inhmethods)

# WearHapticFeedbackConstants


`
public

final

class
WearHapticFeedbackConstants
`


`

extends Object


`

`


`

|---|---|
| java.lang.Object ||
| ↳ | com.google.wear.input.WearHapticFeedbackConstants |

<br />

*** ** * ** ***

This API provides access to the device implementation of the respective haptic constants.

These constants should be used to perform haptic feedback effects via `https://developer.android.com/reference/android/view/View#performHapticFeedback(int)`.

For example, use the following API to provide haptic feedback effects when scrolling:

- for scrollTick : performHapticFeedback(WearHapticFeedbackConstants.getScrollTick())

- for scrollItemFocus :
performHapticFeedback(WearHapticFeedbackConstants.getScrollItemFocus())

- for scrollLimit : performHapticFeedback(WearHapticFeedbackConstants.getScrollLimit())

## Summary

| ### Public methods ||
|---|---|
| ` static int` | ` https://developer.android.com/reference/com/google/wear/input/WearHapticFeedbackConstants#getScrollItemFocus()() ` A haptic effect to signal that a list element has been focused while scrolling. |
| ` static int` | ` https://developer.android.com/reference/com/google/wear/input/WearHapticFeedbackConstants#getScrollLimit()() ` A haptic effect to signal reaching the scrolling limits of a list while scrolling. |
| ` static int` | ` https://developer.android.com/reference/com/google/wear/input/WearHapticFeedbackConstants#getScrollTick()() ` A haptic effect to provide texture while scrolling. |

| ### Inherited methods |
|---|---|
| From class ` java.lang.Object ` |---|---| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class<?>` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||

## Public methods

### getScrollItemFocus

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static int getScrollItemFocus ()
```

A haptic effect to signal that a list element has been focused while scrolling.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getScrollLimit

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static int getScrollLimit ()
```

A haptic effect to signal reaching the scrolling limits of a list while scrolling.

<br />

| Returns ||
|---|---|
| `int` | <br /> |

### getScrollTick

Added in [version 34.1](https://developer.android.com/topic/libraries/support-library/revisions)

```
public static int getScrollTick ()
```

A haptic effect to provide texture while scrolling.

<br />

| Returns ||
|---|---|
| `int` | <br /> |