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!