BluetoothGattServerCallback.OnNotificationSent 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當通知或指示傳送到遠端裝置時,會呼叫回撥。
[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 如果行動成功
- 屬性
備註
當通知或指示傳送到遠端裝置時,會呼叫回撥。
當需發送多則通知時,應用程式必須等待收到回撥後再發送更多通知。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。