BluetoothGattService.GetCharacteristic(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 caractéristique avec un UUID donné hors de la liste des caractéristiques offertes par ce service.
[Android.Runtime.Register("getCharacteristic", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattCharacteristic;", "GetGetCharacteristic_Ljava_util_UUID_Handler")]
public virtual Android.Bluetooth.BluetoothGattCharacteristic? GetCharacteristic(Java.Util.UUID? uuid);
[<Android.Runtime.Register("getCharacteristic", "(Ljava/util/UUID;)Landroid/bluetooth/BluetoothGattCharacteristic;", "GetGetCharacteristic_Ljava_util_UUID_Handler")>]
abstract member GetCharacteristic : Java.Util.UUID -> Android.Bluetooth.BluetoothGattCharacteristic
override this.GetCharacteristic : Java.Util.UUID -> Android.Bluetooth.BluetoothGattCharacteristic
Paramètres
- uuid
- UUID
Retours
Objet caractéristique GATT ou null si aucune caractéristique n’a été trouvée avec l’UUID donné.
- Attributs
Remarques
Retourne une caractéristique avec un UUID donné hors de la liste des caractéristiques offertes par ce service.
Il s’agit d’une fonction pratique permettant d’autoriser l’accès à une caractéristique donnée sans énumérer la liste retournée #getCharacteristics manuellement.
Si un service distant offre plusieurs caractéristiques avec le même UUID, la première instance d’une caractéristique avec l’UUID donné est retournée.
Java documentation pour android.bluetooth.BluetoothGattService.getCharacteristic(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.