Share via


WiFiDirectServiceAdvertiser.AdvertisementStatusChanged Event

Definition

Event raised when the AdvertisementStatus property value changes.

// Register
event_token AdvertisementStatusChanged(TypedEventHandler<WiFiDirectServiceAdvertiser, IInspectable const&> const& handler) const;

// Revoke with event_token
void AdvertisementStatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
WiFiDirectServiceAdvertiser::AdvertisementStatusChanged_revoker AdvertisementStatusChanged(auto_revoke_t, TypedEventHandler<WiFiDirectServiceAdvertiser, IInspectable const&> const& handler) const;
public event TypedEventHandler<WiFiDirectServiceAdvertiser,object> AdvertisementStatusChanged;
function onAdvertisementStatusChanged(eventArgs) { /* Your code */ }
wiFiDirectServiceAdvertiser.addEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
wiFiDirectServiceAdvertiser.removeEventListener("advertisementstatuschanged", onAdvertisementStatusChanged);
- or -
wiFiDirectServiceAdvertiser.onadvertisementstatuschanged = onAdvertisementStatusChanged;
Public Custom Event AdvertisementStatusChanged As TypedEventHandler(Of WiFiDirectServiceAdvertiser, Object) 

Event Type

Applies to