语言

Intent.ActionStopVoiceCommand 字段

定义

广播操作:停止语音命令。

[Android.Runtime.Register("ACTION_STOP_VOICE_COMMAND", ApiSince=36)]
public const string ActionStopVoiceCommand;
[<Android.Runtime.Register("ACTION_STOP_VOICE_COMMAND", ApiSince=36)>]
val mutable ActionStopVoiceCommand : string

字段值

实现

特性

注解

广播操作:停止语音命令。

该意向将具有以下额外值。

BluetoothDevice.EXTRA_DEVICE指示发起此请求的 BluetoothDevice。

BluetoothProfile.EXTRA_PROFILE指示触发此请求的配置文件(例如 BluetoothProfile.HEADSET 或 BluetoothProfile.LE_AUDIO)。

此外,如果BluetoothProfile.EXTRA_PROFILE为 BluetoothProfile.HEADSET,则应用应调用 BluetoothHeadset.stopVoiceRecognition(BluetoothDevice)以停止语音助理会话。 如果BluetoothProfile.EXTRA_PROFILE BluetoothProfile.LE_AUDIO,应用应调用 AudioRecord.stop()以停止语音助理会话。

这是一个受保护的意向,只能由系统发送。

Android 参考。android.content.Intent.ACTION_STOP_VOICE_COMMAND

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于