語言

BluetoothLeAudio.GetConnectedGroupLeadDevice(Int32) 方法

定義

為團隊準備鉛製裝置。

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

參數

groupId
Int32

群組識別。

傳回

組別導引裝置。

屬性

備註

為團隊準備鉛製裝置。

引腳裝置是系統中可作為主動裝置使用的裝置。 Active 裝置指向 Le Audio 群組的 Audio Device。 此方法會回傳已連接LE音訊群組的Lead裝置,系統其他部分應將該裝置用於setActiveDevice()方法,該裝置需要將特定LE音訊群組設為主動。

注意:getActiveDevice() 會回傳目前活躍的 LE 音訊群組的 Lead 裝置。 注意:當 Le Audio 群組活躍且群組中有更多裝置時,Lead 裝置被斷線,則 Lead 裝置不會改變。 如果 Lead 裝置斷線,對於未啟用的 Le Audio 群組,將會選擇新的 Lead 裝置

Java 文件 android.bluetooth.BluetoothLeAudio.getConnectedGroupLeadDevice(int)。

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

適用於