語言

BluetoothGattServerCallback.OnDescriptorWriteRequest 方法

定義

遠端用戶端請求寫入本地描述符。

[Android.Runtime.Register("onDescriptorWriteRequest", "(Landroid/bluetooth/BluetoothDevice;ILandroid/bluetooth/BluetoothGattDescriptor;ZZI[B)V", "GetOnDescriptorWriteRequest_Landroid_bluetooth_BluetoothDevice_ILandroid_bluetooth_BluetoothGattDescriptor_ZZIarrayBHandler")]
public virtual void OnDescriptorWriteRequest(Android.Bluetooth.BluetoothDevice? device, int requestId, Android.Bluetooth.BluetoothGattDescriptor? descriptor, bool preparedWrite, bool responseNeeded, int offset, byte[]? value);
[<Android.Runtime.Register("onDescriptorWriteRequest", "(Landroid/bluetooth/BluetoothDevice;ILandroid/bluetooth/BluetoothGattDescriptor;ZZI[B)V", "GetOnDescriptorWriteRequest_Landroid_bluetooth_BluetoothDevice_ILandroid_bluetooth_BluetoothGattDescriptor_ZZIarrayBHandler")>]
abstract member OnDescriptorWriteRequest : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.BluetoothGattDescriptor * bool * bool * int * byte[] -> unit
override this.OnDescriptorWriteRequest : Android.Bluetooth.BluetoothDevice * int * Android.Bluetooth.BluetoothGattDescriptor * bool * bool * int * byte[] -> unit

參數

device
BluetoothDevice

請求寫入操作的遠端裝置

requestId
Int32

請求的本我

descriptor
BluetoothGattDescriptor

描述詞,需被書寫。

preparedWrite
Boolean

如果這個寫入操作應該排隊等待後續執行,則為真。

responseNeeded
Boolean

如果遠端裝置需要回應,則為真

offset
Int32

該值的偏移量

value
Byte[]

客戶端想指派給描述符的值

屬性

備註

遠端用戶端請求寫入本地描述符。

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

Java 文件 android.bluetooth.BluetoothGattServerCallback.onDescriptorWriteRequest(android.bluetooth.BluetoothDevice, int, android.bluetooth.BluetoothGattDescriptor, boolean, boolean, int, byte[])。

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

適用於