語言

BluetoothHeadset.StopVoiceRecognition(BluetoothDevice) 方法

定義

停止藍牙語音辨識模式,並關閉藍牙音訊路徑。

[Android.Runtime.Register("stopVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool StopVoiceRecognition(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("stopVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.StopVoiceRecognition : Android.Bluetooth.BluetoothDevice -> bool

參數

device
BluetoothDevice

藍牙耳機

傳回

若未連接耳機、語音辨識尚未啟動、語音辨識已結束,則為假,否則為真

屬性

備註

停止藍牙語音辨識模式,並關閉藍牙音訊路徑。

使用者可以收聽。#ACTION_AUDIO_STATE_CHANGED 若此函數返回為真,則此意圖將被廣播,並設定 #EXTRA_STATE 為 #STATE_AUDIO_DISCONNECTED。

Java 文件 android.bluetooth.BluetoothHeadset.stopVoiceRecognition(android.bluetooth.BluetoothDevice)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於