共用方式為


BluetoothLEAdvertisementWatcher.Received 事件

定義

收到新藍牙 LE 公告事件的通知。

// 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) 

事件類型

Windows 需求

應用程式功能
bluetooth

適用於

另請參閱