Språk

Intent.ActionStopVoiceCommand Field

Definition

Broadcast Action: Stop Voice Command.

[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

Field Value

Implements

Attributes

Remarks

Broadcast Action: Stop Voice Command.

The intent will have the following extra values.

BluetoothDevice.EXTRA_DEVICE indicates the BluetoothDevice which initiated this request.

BluetoothProfile.EXTRA_PROFILE indicates the profile (e.g., BluetoothProfile.HEADSET or BluetoothProfile.LE_AUDIO) which triggered this request.

Additionally, if the BluetoothProfile.EXTRA_PROFILE is BluetoothProfile.HEADSET, the app should call BluetoothHeadset.stopVoiceRecognition(BluetoothDevice) to stop voice assistant session. If the BluetoothProfile.EXTRA_PROFILE is BluetoothProfile.LE_AUDIO, the app should call AudioRecord.stop() to stop voice assistant session.

This is a protected intent that can only be sent by the system.

Android reference for android.content.Intent.ACTION_STOP_VOICE_COMMAND.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to