Android中文API(96)——SoundEffectConstants
正文
public class SoundEffectConstants extends Object
java.lang.Object
android.view.SoundEffectConstants
二、概述
playSoundEffect(int)所需的播放声效设定常量。
三、常量
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)
针对不同声音方向,获得相应的发声常数。
参数
direction 参数取值为以下常量之一:FOCUS_UP, FOCUS_DOWN, FOCUS_LEFT, FOCUS_RIGHT, FOCUS_FORWARD , FOCUS_BACKWARD.
返回值
合适的发声常数
本文转自over140 51CTO博客,原文链接:http://blog.51cto.com/over140/582401,如需转载请自行联系原作者