BluetoothLeAudio.GetGroupId(BluetoothDevice) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得裝置群組 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。