java.lang.Object
|---ohos.agp.components.Component.DefSpeechEventListener
public static class Component.DefSpeechEventListener
extends Object
implements Component.SpeechEventListener
提供在语音事件绑定到组件时调用的默认回调。
| 构造函数 | 描述 |
|---|---|
| DefSpeechEventListener() |
| 修饰符和类型 | 方法 | 描述 |
|---|---|---|
| boolean | onSpeechEvent(Component component, SpeechEvent event) | 当语音事件绑定到组件时调用。 |
| 从类 java.lang.Object 继承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
public DefSpeechEventListener()
public boolean onSpeechEvent(Component component, SpeechEvent event)
当语音事件绑定到组件时调用。 您需要实现此回调来处理语音事件。
指定者:
接口 Component.SpeechEventListener 中的 onSpeechEvent
参数:
| 参数名称 | 参数描述 |
|---|---|
| component | 表示绑定到语音事件的组件。 |
| event | 表示语音事件。 |
返回:
如果侦听器已经处理了语音事件,则返回 true; 否则返回 false。
备案信息: 粤ICP备15087711号-2
Copyright © 2008-2025 啊嘎哇在线工具箱 All Rights.
本站所有资料来源于网络,版权归原作者所有,仅作学习交流使用,如不慎侵犯了您的权利,请联系我们。