Glass Explorer Edition SDK 已弃用。本文档仍作为历史参考。
提示音
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
特定于 Glass 的音效的额外常量。
此组使用特定于 Glass 的声音扩展现有的 AudioManager
常量。
常规用法
如需播放声音,请调用 playSoundEffect(int)
并提供所需的声音。例如,如需播放 TAP
声音,请执行以下操作:
AudioManager audio = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
audio.playSoundEffect(Sounds.TAP);
常量 |
int |
已禁止 |
用户尝试执行了不允许的操作。 |
int |
已停用 |
用户忽略了一项内容。 |
int |
ERROR |
出现错误。 |
int |
已选择 |
已选择 1 项内容。 |
int |
成功 |
操作成功完成。 |
int |
TAP |
用户点按了相应内容。 |
继承的方法 |
继承自 java.lang.Object 类
对象
|
clone()
|
布尔值
|
|
无效
|
finalize()
|
final
<Class> |
getClass()
|
整型
|
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
字符串
|
toString()
|
final void |
wait()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
|
常量
此项为 API 级别 XE12 中的新增配置
public static final
int
DISALLOWED
此项为 API 级别 XE12 中的新增配置
public static final int DISMISSED
此项为 API 级别 XE12 中的新增配置
public static final int ERROR
此项为 API 级别 XE12 中的新增配置
public static final
int
SELECTED
此项为 API 级别 XE12 中的新增配置
public static final int SUCCESS
此项为 API 级别 XE12 中的新增配置
public static final
int
TAP
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-02-15。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]