語言

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 音訊的裝置

傳回

該裝置目前所屬的群組 ID, #GROUP_ID_INVALID 但該裝置不屬於任何群組

屬性

備註

取得裝置群組 ID。擁有相同群組 ID 的裝置屬於同一群組(例如左右耳塞)

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於