Package icyllis.modernui.view
Class HapticFeedbackConstants
java.lang.Object
icyllis.modernui.view.HapticFeedbackConstants
Constants to be used to perform haptic feedback effects via
View.performHapticFeedback(int)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Invocation of the voice assistant via hardware button.static final int
The user has pressed either a day or month or year date of a Calendar.static final int
The user has pressed either an hour or minute tick of a Clock.static final int
A haptic effect to signal the confirmation or successful completion of a user interaction.static final int
The user has performed a context click on an object.static final int
The user has moved the dragged object within a droppable area.static final int
The user's squeeze crossed the gesture's release threshold.static final int
The user's squeeze crossed the gesture's initiation threshold.static final int
The user unlocked the devicestatic final int
Flag forView.performHapticFeedback(int, int)
: Ignore the global setting for whether to perform haptic feedback, do it always.static final int
Flag forView.performHapticFeedback(int, int)
: Ignore the setting in the view for whether to perform haptic feedback, do it always.static final int
The user has finished a gesture (e.g.static final int
The user has started a gesture (e.g.static final int
The user has pressed a virtual or software keyboard key.static final int
The user has released a virtual keyboard key.static final int
The user has pressed a soft keyboard key.static final int
The user has performed a long press on an object that is resulting in an action being performed.static final int
A haptic effect to signal the rejection or failure of a user interaction.static final int
The phone has booted with safe mode enabled.static final int
The user has performed a selection/insertion handle move on text field.static final int
The user has pressed on a virtual on-screen key.static final int
The user has released a virtual key. -
Method Summary
-
Field Details
-
LONG_PRESS
public static final int LONG_PRESSThe user has performed a long press on an object that is resulting in an action being performed.- See Also:
-
VIRTUAL_KEY
public static final int VIRTUAL_KEYThe user has pressed on a virtual on-screen key.- See Also:
-
KEYBOARD_TAP
public static final int KEYBOARD_TAPThe user has pressed a soft keyboard key.- See Also:
-
CLOCK_TICK
public static final int CLOCK_TICKThe user has pressed either an hour or minute tick of a Clock.- See Also:
-
CALENDAR_DATE
public static final int CALENDAR_DATEThe user has pressed either a day or month or year date of a Calendar.- See Also:
-
CONTEXT_CLICK
public static final int CONTEXT_CLICKThe user has performed a context click on an object.- See Also:
-
KEYBOARD_PRESS
public static final int KEYBOARD_PRESSThe user has pressed a virtual or software keyboard key.- See Also:
-
KEYBOARD_RELEASE
public static final int KEYBOARD_RELEASEThe user has released a virtual keyboard key.- See Also:
-
VIRTUAL_KEY_RELEASE
public static final int VIRTUAL_KEY_RELEASEThe user has released a virtual key.- See Also:
-
TEXT_HANDLE_MOVE
public static final int TEXT_HANDLE_MOVEThe user has performed a selection/insertion handle move on text field.- See Also:
-
ENTRY_BUMP
public static final int ENTRY_BUMPThe user unlocked the device- See Also:
-
DRAG_CROSSING
public static final int DRAG_CROSSINGThe user has moved the dragged object within a droppable area.- See Also:
-
GESTURE_START
public static final int GESTURE_STARTThe user has started a gesture (e.g. on the soft keyboard).- See Also:
-
GESTURE_END
public static final int GESTURE_ENDThe user has finished a gesture (e.g. on the soft keyboard).- See Also:
-
EDGE_SQUEEZE
public static final int EDGE_SQUEEZEThe user's squeeze crossed the gesture's initiation threshold.- See Also:
-
EDGE_RELEASE
public static final int EDGE_RELEASEThe user's squeeze crossed the gesture's release threshold.- See Also:
-
CONFIRM
public static final int CONFIRMA haptic effect to signal the confirmation or successful completion of a user interaction.- See Also:
-
REJECT
public static final int REJECTA haptic effect to signal the rejection or failure of a user interaction.- See Also:
-
SAFE_MODE_ENABLED
public static final int SAFE_MODE_ENABLEDThe phone has booted with safe mode enabled. This is a private constant. Feel free to renumber as desired.- See Also:
-
ASSISTANT_BUTTON
public static final int ASSISTANT_BUTTONInvocation of the voice assistant via hardware button.- See Also:
-
FLAG_IGNORE_VIEW_SETTING
public static final int FLAG_IGNORE_VIEW_SETTINGFlag forView.performHapticFeedback(int, int)
: Ignore the setting in the view for whether to perform haptic feedback, do it always.- See Also:
-
FLAG_IGNORE_GLOBAL_SETTING
public static final int FLAG_IGNORE_GLOBAL_SETTINGFlag forView.performHapticFeedback(int, int)
: Ignore the global setting for whether to perform haptic feedback, do it always.- See Also:
-