Table of Contents

Class BluetoothRemoteGATTDescriptor

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The BluetoothRemoteGATTDescriptor interface of the Web Bluetooth API provides a GATT Descriptor,
which provides further information about a characteristic's value.
[Value("BluetoothRemoteGATTDescriptor")]
public class BluetoothRemoteGATTDescriptor
Inheritance
BluetoothRemoteGATTDescriptor
Inherited Members

Remarks

Constructors

BluetoothRemoteGATTDescriptor()

public BluetoothRemoteGATTDescriptor()

Properties

Characteristic

NOTE
Experimental
The BluetoothRemoteGATTDescriptor.characteristic
read-only property returns the BluetoothRemoteGATTCharacteristic this
descriptor belongs to.
[Value("characteristic")]
public BluetoothRemoteGATTCharacteristic Characteristic { get; }

Property Value

BluetoothRemoteGATTCharacteristic

An instance of BluetoothRemoteGATTCharacteristic.

Remarks

Uuid

NOTE
Experimental
The BluetoothRemoteGATTDescriptor.uuid read-only property returns the UUID of the characteristic descriptor.
For example "00002902-0000-1000-8000-00805f9b34fb" for the Client Characteristic Configuration descriptor.
[Value("uuid")]
public string Uuid { get; }

Property Value

string

A UUID.

Remarks

Value

NOTE
Experimental
The BluetoothRemoteGATTDescriptor.value
read-only property returns an DataView containing the currently cached
descriptor value. This value gets updated when the value of the descriptor is read.
[Value("value")]
public DataView? Value { get; }

Property Value

DataView

A DataView.

Remarks

Methods

ReadValue()

NOTE
Experimental
The
BluetoothRemoteGATTDescriptor.readValue()
method returns a Promise that resolves to
a DataView holding a duplicate of the value property if
it is available and supported. Otherwise it throws an error.
[Value("readValue")]
public Task<DataView> ReadValue()

Returns

Task<DataView>

A Promise that resolves to a DataView.

Remarks

WriteValue(Union224)

NOTE
Experimental
The BluetoothRemoteGATTDescriptor.writeValue()
method sets the value property to the bytes contained in
an ArrayBuffer, TypedArray, or DataView and returns a Promise.
[Value("writeValue")]
public Task<GlobalObject.Undefined> WriteValue(Union224 value)

Parameters

value Union224

Returns

Task<GlobalObject.Undefined>

A Promise.

Remarks