Share via


BluetoothLeAudio.GetGroupId(BluetoothDevice) Method

Definition

Get device group 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

Parameters

device
BluetoothDevice

LE Audio capable device

Returns

group id that this device currently belongs to, #GROUP_ID_INVALID when this device does not belong to any group

Attributes

Remarks

Get device group id. Devices with same group id belong to same group (i.e left and right earbud)

Java documentation for android.bluetooth.BluetoothLeAudio.getGroupId(android.bluetooth.BluetoothDevice).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to