BluetoothGattCallback.OnCharacteristicChanged 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.
Surcharges
| Nom | Description |
|---|---|
| OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic) |
Rappel déclenché à la suite d’une notification de caractéristique distante. |
| OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[]) |
Rappel déclenché à la suite d’une notification de caractéristique distante. |
OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic)
Rappel déclenché à la suite d’une notification de caractéristique distante.
[Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")]
public virtual void OnCharacteristicChanged(Android.Bluetooth.BluetoothGatt? gatt, Android.Bluetooth.BluetoothGattCharacteristic? characteristic);
[<Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_Handler")>]
abstract member OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic -> unit
override this.OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic -> unit
Paramètres
- gatt
- BluetoothGatt
Client GATT associé à la caractéristique
- characteristic
- BluetoothGattCharacteristic
Caractéristique qui a été mise à jour à la suite d’un événement de notification à distance.
- Attributs
Remarques
Rappel déclenché à la suite d’une notification de caractéristique distante.
Ce membre est déconseillé. Utilisez BluetoothGattCallback#onCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, byte[]) comme il s’agit d’une mémoire sécurisée en fournissant la valeur caractéristique au moment de la notification.
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 à
OnCharacteristicChanged(BluetoothGatt, BluetoothGattCharacteristic, Byte[])
Rappel déclenché à la suite d’une notification de caractéristique distante.
[Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[B)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBHandler", ApiSince=33)]
public virtual void OnCharacteristicChanged(Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, byte[] value);
[<Android.Runtime.Register("onCharacteristicChanged", "(Landroid/bluetooth/BluetoothGatt;Landroid/bluetooth/BluetoothGattCharacteristic;[B)V", "GetOnCharacteristicChanged_Landroid_bluetooth_BluetoothGatt_Landroid_bluetooth_BluetoothGattCharacteristic_arrayBHandler", ApiSince=33)>]
abstract member OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] -> unit
override this.OnCharacteristicChanged : Android.Bluetooth.BluetoothGatt * Android.Bluetooth.BluetoothGattCharacteristic * byte[] -> unit
Paramètres
- gatt
- BluetoothGatt
Client GATT associé à la caractéristique
- characteristic
- BluetoothGattCharacteristic
Caractéristique qui a été mise à jour à la suite d’un événement de notification à distance.
- value
- Byte[]
valeur de caractéristique avertie
- Attributs
Remarques
Rappel déclenché à la suite d’une notification de caractéristique distante. Notez que la valeur dans l’objet caractéristique peut avoir changé depuis la réception de la notification des caractéristiques distantes. Vérifiez donc la valeur du paramètre au moment de la notification.
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.