WearHapticFeedbackConstants
public
final
class
WearHapticFeedbackConstants
extends Object
| java.lang.Object | |
| ↳ | com.google.wear.input.WearHapticFeedbackConstants |
This API provides access to the device implementation of the respective haptic constants.
These constants should be used to perform haptic feedback effects via 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
|
getScrollItemFocus()
A haptic effect to signal that a list element has been focused while scrolling. |
static
int
|
getScrollLimit()
A haptic effect to signal reaching the scrolling limits of a list while scrolling. |
static
int
|
getScrollTick()
A haptic effect to provide texture while scrolling. |
Inherited methods | |
|---|---|
Public methods
getScrollItemFocus
public static int getScrollItemFocus ()
A haptic effect to signal that a list element has been focused while scrolling.
| Returns | |
|---|---|
int |
|
getScrollLimit
public static int getScrollLimit ()
A haptic effect to signal reaching the scrolling limits of a list while scrolling.
| Returns | |
|---|---|
int |
|
getScrollTick
public static int getScrollTick ()
A haptic effect to provide texture while scrolling.
| Returns | |
|---|---|
int |
|