Langue

BluetoothGattServerCallback.OnNotificationSent Méthode

Définition

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.

Java documentation pour android.bluetooth.BluetoothGattServerCallback.onNotificationSent(android.bluetooth.BluetoothDevice, int).

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 à