語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於