BluetoothLEAdvertisementWatcher.Received Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Notification pour les nouveaux événements publicitaires Bluetooth LE reçus.
// 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)
Type d'événement
Configuration requise pour Windows
Fonctionnalités de l’application |
bluetooth
|