BluetoothGattServerCallback.OnNotificationSent 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.
Rappel appelé lorsqu’une notification ou une indication a été envoyée à un appareil distant.
[Android.Runtime.Register("onNotificationSent", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnNotificationSent_Landroid_bluetooth_BluetoothDevice_IHandler")]
public virtual void OnNotificationSent(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.GattStatus status);
[<Android.Runtime.Register("onNotificationSent", "(Landroid/bluetooth/BluetoothDevice;I)V", "GetOnNotificationSent_Landroid_bluetooth_BluetoothDevice_IHandler")>]
abstract member OnNotificationSent : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.GattStatus -> unit
override this.OnNotificationSent : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.GattStatus -> unit
Paramètres
- device
- BluetoothDevice
L’appareil distant vers lequel la notification a été envoyée
- status
- GattStatus
BluetoothGatt#GATT_SUCCESS si l’opération a réussi
- Attributs
Remarques
Rappel appelé lorsqu’une notification ou une indication a été envoyée à un appareil distant.
Lorsque plusieurs notifications doivent être envoyées, une application doit attendre la réception de ce rappel avant d’envoyer des notifications supplémentaires.
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.