public class

SoundEffectConstants

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

Class Overview

Constants to be used to play sound effects via playSoundEffect(int)

Summary

Constants
int CLICK
int NAVIGATION_DOWN
int NAVIGATION_LEFT
int NAVIGATION_RIGHT
int NAVIGATION_UP
Public Methods
static int getContantForFocusDirection(int direction)
Get the sonification constant for the focus directions.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CLICK

Since: API Level 1

Constant Value: 0 (0x00000000)

public static final int NAVIGATION_DOWN

Since: API Level 1

Constant Value: 4 (0x00000004)

public static final int NAVIGATION_LEFT

Since: API Level 1

Constant Value: 1 (0x00000001)

public static final int NAVIGATION_RIGHT

Since: API Level 1

Constant Value: 3 (0x00000003)

public static final int NAVIGATION_UP

Since: API Level 1

Constant Value: 2 (0x00000002)

Public Methods

public static int getContantForFocusDirection (int direction)

Since: API Level 1

Get the sonification constant for the focus directions.

Returns
  • The appropriate sonification constant.