WebBluetoothDevice class

Constructors

WebBluetoothDevice.fromEvent(Object event)
Create a new instance form an advertisementreceived event.
factory
WebBluetoothDevice.fromJSObject(Object _jsObject)
Create a new instance from a js object.

Properties

gatt NativeBluetoothRemoteGATTServer?
Get a reference to the NativeBluetoothRemoteGATTServer to communicate with the WebBluetoothRemoteGATTServices.
no setter
hasForget bool
Check to see if the browser/ user agent has the forget method.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String
Get the id of the device.
no setter
name String?
A human readable name of the device.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
watchingAdvertisements bool
If the device is watching for advertisements. If advertisements are not unsupported then it will always return false.
no setter

Methods

addEventListener(String type, void listener(dynamic)) → void
Add a new event listener to the device.
forget() Future<void>
Forget the device. This means that the device will be forgotten by the browser and no longer shows up in Bluetooth.getDevices.
hasWatchAdvertisements() bool
Check to see if the current browser has the watch advertisements method implemented
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, void listener(dynamic)) → void
Remove an event listener that has previously been added.
toString() String
A string representation of this object.
inherited
watchAdvertisements([WatchAdvertisementsOptions? options]) Future<void>
Start watching for advertisements. The advertisements will be received on the advertisementreceived event. See WebAdvertisementReceivedEvent for the object that is emitted every time the event fires.

Operators

operator ==(Object other) bool
The equality operator.
inherited