Android.Bluetooth.BluetoothGattServerCallback.OnDescriptorWriteRequest Method
A remote client has requested to write to a local descriptor.

Syntax

[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 (BluetoothDevice device, int requestId, BluetoothGattDescriptor descriptor, bool preparedWrite, bool responseNeeded, int offset, byte[] value)

Parameters

device
The remote device that has requested the write operation
requestId
The Id of the request
descriptor
Descriptor to be written to.
preparedWrite
true, if this write operation should be queued for later execution.
responseNeeded
true, if the remote device requires a response
offset
The offset given for the value
value
The value the client wants to assign to the descriptor

Remarks

A remote client has requested to write to a local descriptor.

An application must call BluetoothGattServer.SendResponse(BluetoothDevice, System.Int32, System.Int32, System.Int32, System.Int32) to complete the request.

[Android Documentation]

Requirements

Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18