语言

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)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于