Package icyllis.modernui.view
Class SoundEffectConstants
java.lang.Object
icyllis.modernui.view.SoundEffectConstants
Constants to be used to play sound effects via
View.playSoundEffect(int)
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
Effect id for a navigation downstatic final int
Effect id for a navigation leftstatic final int
Effect id for a repeatedly triggered navigation down, e.g.static final int
Effect id for a repeatedly triggered navigation left, e.g.static final int
Effect id for a repeatedly triggered navigation right, e.g.static final int
Effect id for a repeatedly triggered navigation up, e.g.static final int
Effect id for a navigation rightstatic final int
Effect id for a navigation up -
Method Summary
Modifier and TypeMethodDescriptionstatic int
getContantForFocusDirection
(int direction) Get the sonification constant for the focus directions.
-
Field Details
-
CLICK
public static final int CLICK- See Also:
-
NAVIGATION_LEFT
public static final int NAVIGATION_LEFTEffect id for a navigation left- See Also:
-
NAVIGATION_UP
public static final int NAVIGATION_UPEffect id for a navigation up- See Also:
-
NAVIGATION_RIGHT
public static final int NAVIGATION_RIGHTEffect id for a navigation right- See Also:
-
NAVIGATION_DOWN
public static final int NAVIGATION_DOWNEffect id for a navigation down- See Also:
-
NAVIGATION_REPEAT_LEFT
public static final int NAVIGATION_REPEAT_LEFTEffect id for a repeatedly triggered navigation left, e.g. due to long pressing a button- See Also:
-
NAVIGATION_REPEAT_UP
public static final int NAVIGATION_REPEAT_UPEffect id for a repeatedly triggered navigation up, e.g. due to long pressing a button- See Also:
-
NAVIGATION_REPEAT_RIGHT
public static final int NAVIGATION_REPEAT_RIGHTEffect id for a repeatedly triggered navigation right, e.g. due to long pressing a button- See Also:
-
NAVIGATION_REPEAT_DOWN
public static final int NAVIGATION_REPEAT_DOWNEffect id for a repeatedly triggered navigation down, e.g. due to long pressing a button- See Also:
-
-
Method Details
-
getContantForFocusDirection
public static int getContantForFocusDirection(int direction) Get the sonification constant for the focus directions.- Parameters:
direction
- The direction of the focus.- Returns:
- The appropriate sonification constant.
- Throws:
IllegalArgumentException
- when the passed direction is not one of the documented values.
-