Class DescriptorWriteRequestEventArgs
- Namespace
- Bluetooth.Abstractions.Broadcasting.EventArgs
- Assembly
- Bluetooth.Abstractions.Broadcasting.dll
Event arguments for descriptor write request events from a client device.
public class DescriptorWriteRequestEventArgs : EventArgs
- Inheritance
-
DescriptorWriteRequestEventArgs
- Inherited Members
Constructors
DescriptorWriteRequestEventArgs(IBluetoothConnectedDevice, IBluetoothLocalDescriptor, ReadOnlyMemory<byte>, int, bool, bool)
Initializes a new instance of the DescriptorWriteRequestEventArgs class.
public DescriptorWriteRequestEventArgs(IBluetoothConnectedDevice device, IBluetoothLocalDescriptor localDescriptor, ReadOnlyMemory<byte> value, int offset, bool isPreparedWrite, bool responseNeeded)
Parameters
deviceIBluetoothConnectedDeviceThe client device making the write request.
localDescriptorIBluetoothLocalDescriptorThe descriptor being written.
valueReadOnlyMemory<byte>The value being written.
offsetintThe offset at which to start writing.
isPreparedWriteboolIndicates whether this is a prepared write request.
responseNeededboolIndicates whether a response is needed.
Properties
Accept
Gets or sets a value indicating whether the write request should be accepted. Set to false to reject the write request.
public bool Accept { get; set; }
Property Value
Device
Gets the client device making the write request.
public IBluetoothConnectedDevice Device { get; }
Property Value
IsPreparedWrite
Gets a value indicating whether this is a prepared write request.
public bool IsPreparedWrite { get; }
Property Value
LocalDescriptor
Gets the descriptor being written.
public IBluetoothLocalDescriptor LocalDescriptor { get; }
Property Value
Offset
Gets the offset at which to start writing.
public int Offset { get; }
Property Value
ResponseNeeded
Gets a value indicating whether a response is needed.
public bool ResponseNeeded { get; }
Property Value
Value
Gets the value being written.
public ReadOnlyMemory<byte> Value { get; }