to top
Android APIs
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

? Examples
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

Added in API level 1

Constant Value: 0 (0x00000000)

public static final int NAVIGATION_DOWN

Added in API level 1

Constant Value: 4 (0x00000004)

public static final int NAVIGATION_LEFT

Added in API level 1

Constant Value: 1 (0x00000001)

public static final int NAVIGATION_RIGHT

Added in API level 1

Constant Value: 3 (0x00000003)

public static final int NAVIGATION_UP

Added in API level 1

Constant Value: 2 (0x00000002)

Public Methods

public static int getContantForFocusDirection (int direction)

Added in API level 1

Get the sonification constant for the focus directions.

Returns
  • The appropriate sonification constant.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.