Table of Contents

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

device IBluetoothConnectedDevice

The client device making the write request.

localDescriptor IBluetoothLocalDescriptor

The descriptor being written.

value ReadOnlyMemory<byte>

The value being written.

offset int

The offset at which to start writing.

isPreparedWrite bool

Indicates whether this is a prepared write request.

responseNeeded bool

Indicates 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

bool

Device

Gets the client device making the write request.

public IBluetoothConnectedDevice Device { get; }

Property Value

IBluetoothConnectedDevice

IsPreparedWrite

Gets a value indicating whether this is a prepared write request.

public bool IsPreparedWrite { get; }

Property Value

bool

LocalDescriptor

Gets the descriptor being written.

public IBluetoothLocalDescriptor LocalDescriptor { get; }

Property Value

IBluetoothLocalDescriptor

Offset

Gets the offset at which to start writing.

public int Offset { get; }

Property Value

int

ResponseNeeded

Gets a value indicating whether a response is needed.

public bool ResponseNeeded { get; }

Property Value

bool

Value

Gets the value being written.

public ReadOnlyMemory<byte> Value { get; }

Property Value

ReadOnlyMemory<byte>