AdvertisementReceivedEventInterface<T> class
abstract
An interface for the advertisementreceived
event.
This interface exists to ensure that the web version of this event has the same fields as the version in src. The only difference between the two versions is that they reference a different bluetooth device. Because the version in src has more creature comfort methods to help out.
- Implementers
Constructors
- AdvertisementReceivedEventInterface(T device)
- Set the device for this abstract class.
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 speaker
0x0841`. The full list of appearance values can be found in the Bluetooth specifications found here: https://specificationrefs.bluetooth.com/assigned-values/Appearance%20Values.pdfno setter - device → T
-
The device that this event was fired for.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
manufacturerData
→ UnmodifiableMapView<
int, ByteData> -
This map shows the manufacturer data of the device.
no setter
- name → String?
-
The name of the device, not every device advertises this.
no setter
- 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).
no setter
- 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.
no setter
- txPower → int?
-
The original power that the advertisement was broadcast in. This is
measured in dBm (decibel-milliwatts).
no setter
-
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!
no setter
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