Class BluetoothDevice
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
Experimentalenvironment.
[Value("BluetoothDevice")]
public class BluetoothDevice : EventTarget, BluetoothDeviceEventHandlers, CharacteristicEventHandlers, ServiceEventHandlers
- Inheritance
-
BluetoothDevice
- Implements
- Inherited Members
Remarks
Constructors
BluetoothDevice()
public BluetoothDevice()
Properties
Gatt
NOTE
ExperimentalBluetoothDevice.gatt read-only property returnsa reference to the device's BluetoothRemoteGATTServer.
[Value("gatt")]
public BluetoothRemoteGATTServer? Gatt { get; }
Property Value
- BluetoothRemoteGATTServer
A reference to the device's BluetoothRemoteGATTServer.
Remarks
Id
NOTE
ExperimentalBluetoothDevice.id read-only property returns astring that uniquely identifies a device.
[Value("id")]
public string Id { get; }
Property Value
- string
A string.
Remarks
Name
NOTE
ExperimentalBluetoothDevice.name read-only property returns astring that provides a human-readable name for the device.
[Value("name")]
public string? Name { get; }
Property Value
- string
A string.
Remarks
WatchingAdvertisements
[Value("watchingAdvertisements")]
public bool WatchingAdvertisements { get; }
Property Value
Methods
Forget()
[Value("forget")]
public Task<GlobalObject.Undefined> Forget()
Returns
WatchAdvertisements(WatchAdvertisementsOptions)
[Value("watchAdvertisements")]
public Task<GlobalObject.Undefined> WatchAdvertisements(WatchAdvertisementsOptions options = null)
Parameters
optionsWatchAdvertisementsOptions