?
本文檔使用 php中文網(wǎng)手冊(cè) 發(fā)布
SoundEffectConstants
版本:Android 2.3 r1
?
結(jié)構(gòu)
繼承關(guān)系
public class SoundEffectConstants extends Object
?
java.lang.Object
android.view.SoundEffectConstants
?
類概述
playSoundEffect(int)
所需的播放聲效設(shè)定常量。
?
常量
public static final int CLICK
(譯者注:單擊事件)常量,取值0 (0x00000000)
?
public static final int NAVIGATION_DOWN
(譯者注:View.FOCUS_DOWN
)常量,取值4 (0x00000004)
?
public static final int NAVIGATION_LEFT
(譯者注:View.FOCUS_LEFT
)常量,取值1 (0x00000001)
?
public static final int NAVIGATION_RIGHT
(譯者注:View.FOCUS_RIGHT
)常量,取值3 (0x00000003)
?
public static final int NAVIGATION_UP
(譯者注:View.FOCUS_UP
)常量,取值2 (0x00000002)
?
公共方法
public static int getContantForFocusDirection(int direction)
針對(duì)不同聲音方向,獲得相應(yīng)的發(fā)聲常數(shù)。
參數(shù)
??????????????????????????? direction? 參數(shù)取值為以下常量之一:FOCUS_UP
, FOCUS_DOWN
, FOCUS_LEFT
, FOCUS_RIGHT
, FOCUS_FORWARD
, FOCUS_BACKWARD
.
?????????????????? 返回值
??????????????????????????? 合適的發(fā)聲常數(shù)
??????????????????
補(bǔ)充
文章鏈接
觸感反饋和聲音反饋的效果實(shí)現(xiàn)