onAdvertisementReceived property

Stream<BluetoothAdvertisementReceivedEvent> get onAdvertisementReceived

An event fired when an advertisement packet is received.

These events are fired after calling WebBluetoothDevice.watchAdvertisements.

This event will bubble through the WebBluetoothDevice to the root Bluetooth instance.

Implementation

Stream<BluetoothAdvertisementReceivedEvent> get onAdvertisementReceived =>
    _nativeBluetoothInstance.onAdvertisementReceived;