BluetoothLEAdvertisementWatcher.Received Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notification for new Bluetooth LE advertisement events received.
// Register
event_token Received(TypedEventHandler<BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void Received(event_token const* cookie) const;
// Revoke with event_revoker
BluetoothLEAdvertisementWatcher::Received_revoker Received(auto_revoke_t, TypedEventHandler<BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<BluetoothLEAdvertisementWatcher,BluetoothLEAdvertisementReceivedEventArgs> Received;
function onReceived(eventArgs) { /* Your code */ }
bluetoothLEAdvertisementWatcher.addEventListener("received", onReceived);
bluetoothLEAdvertisementWatcher.removeEventListener("received", onReceived);
- or -
bluetoothLEAdvertisementWatcher.onreceived = onReceived;
Public Custom Event Received As TypedEventHandler(Of BluetoothLEAdvertisementWatcher, BluetoothLEAdvertisementReceivedEventArgs)
Event Type
Windows requirements
App capabilities |
bluetooth
|