BluetoothGattServer.GetService(UUID) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne une BluetoothGattService valeur de la liste des services proposés par cet appareil.
[Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")]
public Android.Bluetooth.BluetoothGattService? GetService(Java.Util.UUID? uuid);
[<Android.Runtime.Register("getService", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattService;", "")>]
member this.GetService : Java.Util.UUID -> Android.Bluetooth.BluetoothGattService
Paramètres
- uuid
- UUID
UUID du service demandé
Retours
BluetoothGattService s’il est pris en charge ou null si le service demandé n’est pas proposé par cet appareil.
- Attributs
Remarques
Retourne une BluetoothGattService valeur de la liste des services proposés par cet appareil.
Si plusieurs instances du même service (comme identifié par UUID) existent, la première instance du service est retournée.
Java documentation pour android.bluetooth.BluetoothGattServer.getService(java.util.UUID).
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.