Class DescriptorReadRequestEventArgs
- Namespace
- Bluetooth.Abstractions.Broadcasting.EventArgs
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Event arguments for descriptor read request events from a client device.
public class DescriptorReadRequestEventArgs : EventArgs
- Inheritance
-
DescriptorReadRequestEventArgs
- Inherited Members
Constructors
DescriptorReadRequestEventArgs(IBluetoothConnectedDevice, IBluetoothLocalDescriptor, int)
Initializes a new instance of the DescriptorReadRequestEventArgs class.
public DescriptorReadRequestEventArgs(IBluetoothConnectedDevice device, IBluetoothLocalDescriptor localDescriptor, int offset)
Parameters
deviceIBluetoothConnectedDeviceThe client device making the read request.
localDescriptorIBluetoothLocalDescriptorThe descriptor being read.
offsetintThe offset at which to start reading.
Properties
Device
Gets the client device making the read request.
public IBluetoothConnectedDevice Device { get; }
Property Value
LocalDescriptor
Gets the descriptor being read.
public IBluetoothLocalDescriptor LocalDescriptor { get; }
Property Value
Offset
Gets the offset at which to start reading.
public int Offset { get; }
Property Value
ResponseValue
Gets or sets the value to return to the client. Set this property to provide the response data.
public ReadOnlyMemory<byte>? ResponseValue { get; set; }