WebAdvertisementReceivedEvent class

This is the object that is emitted for the advertisementreceived event. This object only has the specific fields for the event and not the fields form the basic javascript Event (target field and all that stuff).

See:

Inheritance

Constructors

WebAdvertisementReceivedEvent.fromJSObject(Object jsObject, WebBluetoothDevice device)
Convert an event received from a single js object to something that can actually be used.
factory
WebAdvertisementReceivedEvent.withMemory(WebAdvertisementReceivedEvent memory, WebAdvertisementReceivedEvent newEvent)
Not every device sends all the fields in each advertisement packet. (probably has something to do with the maximum size of such a packet).
factory

Properties

appearance int?
Appearance is the way the device should show up in the user interface. For example if it should show up as a phone 0x0040 to 0x007For as a speaker0x0841`. The full list of appearance values can be found in the Bluetooth specifications found here: https://specificationrefs.bluetooth.com/assigned-values/Appearance%20Values.pdf
final
device WebBluetoothDevice
The device that this event was fired for.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
manufacturerData UnmodifiableMapView<int, ByteData>
This map shows the manufacturer data of the device.
final
name String?
The name of the device, not every device advertises this.
final
rssi int?
The RSSI is the received signal strength indicator. It is the signal strength that the advertisement was received with in dBm (decibel-milliwatts).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceData UnmodifiableMapView<String, ByteData>
Some devices send service data in their advertisements. For example a heart rate sensor may advertise the current heart rate it is detecting.
final
txPower int?
The original power that the advertisement was broadcast in. This is measured in dBm (decibel-milliwatts).
final
uuids List<String>
A list of service UUIDS that this advertisement says the device's GATT server supports. Note the List returned is a List.unmodifiable version so you cannot modify the returned value without causing errors!
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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