BluetoothGattServerCallback.OnDescriptorWriteRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A remote client has requested to write to a local descriptor.
[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
Parameters
- device
- BluetoothDevice
The remote device that has requested the write operation
- requestId
- Int32
The Id of the request
- descriptor
- BluetoothGattDescriptor
Descriptor to be written to.
- preparedWrite
- Boolean
true, if this write operation should be queued for later execution.
- responseNeeded
- Boolean
true, if the remote device requires a response
- offset
- Int32
The offset given for the value
- value
- Byte[]
The value the client wants to assign to the descriptor
- Attributes
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.