Skip to content

Most visited

Recently visited

navigation
Added in API level 3

HapticFeedbackConstants

public class HapticFeedbackConstants
extends Object

java.lang.Object
   ↳ android.view.HapticFeedbackConstants


Constants to be used to perform haptic feedback effects via performHapticFeedback(int)

Summary

Constants

int CLOCK_TICK

The user has pressed either an hour or minute tick of a Clock.

int CONTEXT_CLICK

The user has performed a context click on an object.

int FLAG_IGNORE_GLOBAL_SETTING

Flag for View.performHapticFeedback(int, int): Ignore the global setting for whether to perform haptic feedback, do it always.

int FLAG_IGNORE_VIEW_SETTING

Flag for View.performHapticFeedback(int, int): Ignore the setting in the view for whether to perform haptic feedback, do it always.

int KEYBOARD_TAP

The user has pressed a soft keyboard key.

int LONG_PRESS

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

int VIRTUAL_KEY

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

Inherited methods

From class java.lang.Object

Constants

CLOCK_TICK

Added in API level 21
int CLOCK_TICK

The user has pressed either an hour or minute tick of a Clock.

Constant Value: 4 (0x00000004)

CONTEXT_CLICK

Added in API level 23
int CONTEXT_CLICK

The user has performed a context click on an object.

Constant Value: 6 (0x00000006)

FLAG_IGNORE_GLOBAL_SETTING

Added in API level 3
int FLAG_IGNORE_GLOBAL_SETTING

Flag for View.performHapticFeedback(int, int): Ignore the global setting for whether to perform haptic feedback, do it always.

Constant Value: 2 (0x00000002)

FLAG_IGNORE_VIEW_SETTING

Added in API level 3
int FLAG_IGNORE_VIEW_SETTING

Flag for View.performHapticFeedback(int, int): Ignore the setting in the view for whether to perform haptic feedback, do it always.

Constant Value: 1 (0x00000001)

KEYBOARD_TAP

Added in API level 8
int KEYBOARD_TAP

The user has pressed a soft keyboard key.

Constant Value: 3 (0x00000003)

LONG_PRESS

Added in API level 3
int LONG_PRESS

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

Constant Value: 0 (0x00000000)

VIRTUAL_KEY

Added in API level 5
int VIRTUAL_KEY

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

Constant Value: 1 (0x00000001)

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.