語言

BluetoothHeadset.IsAudioConnected(BluetoothDevice) 方法

定義

檢查藍牙 SCO 音訊是否已連接。

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

參數

device
BluetoothDevice

藍牙耳機

傳回

若 SCO 連接為 true,否則為 false,否則為錯誤

屬性

備註

檢查藍牙 SCO 音訊是否已連接。

Java 文件 android.bluetooth.BluetoothHeadset.isAudioConnected(android.bluetooth.BluetoothDevice)

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

適用於