BluetoothHeadset.IsAudioConnected(BluetoothDevice) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检查蓝牙 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)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。