Most visited

Recently visited

Added in API level 1

SoundEffectConstants

public class SoundEffectConstants
extends Object

java.lang.Object
    android.view.SoundEffectConstants


用于通过 playSoundEffect(int)播放声音效果的 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)

获取重点方向的声波常数。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

CLICK

Added in API level 1
int CLICK

常量值:0(0x00000000)

NAVIGATION_DOWN

Added in API level 1
int NAVIGATION_DOWN

常量值:4(0x00000004)

NAVIGATION_LEFT

Added in API level 1
int NAVIGATION_LEFT

常数值:1(0x00000001)

NAVIGATION_RIGHT

Added in API level 1
int NAVIGATION_RIGHT

常量值:3(0x00000003)

NAVIGATION_UP

Added in API level 1
int NAVIGATION_UP

常量值:2(0x00000002)

公共方法(Public methods)

getContantForFocusDirection

Added in API level 1
int getContantForFocusDirection (int direction)

获取重点方向的声波常数。

参数(Parameters)
direction int: One of FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_FORWARD or FOCUS_BACKWARD
返回(Returns)
int The appropriate sonification constant.

Hooray!