BluetoothLeAudio.GetGroupId(BluetoothDevice) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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.