Langue

BluetoothLeAudio.GetGroupId(BluetoothDevice) Méthode

Définition

Obtenir l’ID du groupe d’appareils.

[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

Paramètres

device
BluetoothDevice

Appareil compatible AVEC LE AUDIO

Retours

ID de groupe auquel appartient actuellement cet appareil, #GROUP_ID_INVALID lorsque cet appareil n’appartient à aucun groupe

Attributs

Remarques

Obtenir l’ID du groupe d’appareils. Les appareils avec le même ID de groupe appartiennent au même groupe (c’est-à-dire à gauche et à droite de l’écouteur)

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

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à