語言

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

請求的本我

execute
Boolean

待處理的寫入應該執行(true)還是取消(false)

屬性

備註

執行此裝置所有待處理的寫入操作。

申請必須打電話 BluetoothGattServer#sendResponse 完成申請。

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

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

適用於