to top
Android APIs
public class

HapticFeedbackConstants

extends Object
java.lang.Object
   ↳ android.view.HapticFeedbackConstants

Class Overview

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

Summary

Constants
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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int FLAG_IGNORE_GLOBAL_SETTING

Added in API level 3

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

Constant Value: 2 (0x00000002)

public static final int FLAG_IGNORE_VIEW_SETTING

Added in API level 3

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)

public static final int KEYBOARD_TAP

Added in API level 8

The user has pressed a soft keyboard key.

Constant Value: 3 (0x00000003)

public static final int LONG_PRESS

Added in API level 3

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

Constant Value: 0 (0x00000000)

public static final int VIRTUAL_KEY

Added in API level 5

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

Constant Value: 1 (0x00000001)