WiFiDirectDevice.ConnectionStatusChanged WiFiDirectDevice.ConnectionStatusChanged WiFiDirectDevice.ConnectionStatusChanged WiFiDirectDevice.ConnectionStatusChanged WiFiDirectDevice.ConnectionStatusChanged Event

Definition

Occurs when a Wi-Fi Direct device connection is connected or disconnected.

public : event TypedEventHandler<WiFiDirectDevice, object> ConnectionStatusChanged
// Register
event_token ConnectionStatusChanged(TypedEventHandler<WiFiDirectDevice, object> const& handler) const;

// Revoke with event_token
void ConnectionStatusChanged(event_token const& cookie) const;

// Revoke with event_revoker
ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<WiFiDirectDevice, object> const& handler) const;
public event TypedEventHandler<WiFiDirectDevice, object> ConnectionStatusChanged
Public Event ConnectionStatusChanged As TypedEventHandler (Of WiFiDirectDevice, object)
function onConnectionStatusChanged(eventArgs){/* Your code */}


wiFiDirectDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
wiFiDirectDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);

Remarks

You can add a handler for the ConnectionStatusChanged event to be notified when the connection has been established or disconnected.

See also