语言

BluetoothGattServerCallback.OnNotificationSent 方法

定义

通知或指示已发送到远程设备时调用的回调。

[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

参数

device
BluetoothDevice

通知发送到的远程设备

status
GattStatus

BluetoothGatt#GATT_SUCCESS 如果操作成功,则为

特性

注解

通知或指示已发送到远程设备时调用的回调。

发送多个通知时,应用程序必须在发送其他通知之前等待接收此回调。

Java文档android.bluetooth.BluetoothGattServerCallback.onNotificationSent(android.bluetooth.BluetoothDevice, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于