语言

BluetoothGattServerCallback.OnExecuteWrite 方法

定义

为此设备执行所有挂起的写入操作。

[Android.Runtime.Register("onExecuteWrite", "(Landroid/bluetooth/BluetoothDevice;IZ)V", "GetOnExecuteWrite_Landroid_bluetooth_BluetoothDevice_IZHandler")]
public virtual void OnExecuteWrite(Android.Bluetooth.BluetoothDevice? device, int requestId, bool execute);
[<Android.Runtime.Register("onExecuteWrite", "(Landroid/bluetooth/BluetoothDevice;IZ)V", "GetOnExecuteWrite_Landroid_bluetooth_BluetoothDevice_IZHandler")>]
abstract member OnExecuteWrite : Android.Bluetooth.BluetoothDevice * int * bool -> unit
override this.OnExecuteWrite : Android.Bluetooth.BluetoothDevice * int * bool -> unit

参数

device
BluetoothDevice

已请求写入操作的远程设备

requestId
Int32

请求的 ID

execute
Boolean

是否应执行挂起的写入(true)还是取消(false)

特性

注解

为此设备执行所有挂起的写入操作。

应用程序必须调用 BluetoothGattServer#sendResponse 才能完成请求。

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

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

适用于