Partager via


BluetoothGattServer.GetService(UUID) Méthode

Définition

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

Documentation Java 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 le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.

S’applique à