语言

BluetoothLeAudio.GetGroupId(BluetoothDevice) 方法

定义

获取设备组 ID。

[Android.Runtime.Register("getGroupId", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=33)]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public int GetGroupId(Android.Bluetooth.BluetoothDevice device);
[<Android.Runtime.Register("getGroupId", "(Landroid/bluetooth/BluetoothDevice;)I", "", ApiSince=33)>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.GetGroupId : Android.Bluetooth.BluetoothDevice -> int

参数

device
BluetoothDevice

支持 LE 音频的设备

返回

当此设备不属于任何组时, #GROUP_ID_INVALID 此设备当前所属的组 ID

特性

注解

获取设备组 ID。具有相同组 ID 的设备属于同一组(即左右耳塞)

Java文档android.bluetooth.BluetoothLeAudio.getGroupId(android.bluetooth.BluetoothDevice)。

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

适用于