Compartilhar via


WiFiDirectDevice.ConnectionStatusChanged Evento

Definição

Ocorre quando uma conexão de dispositivo Wi-Fi Direct está conectada ou desconectada.

// Register
event_token ConnectionStatusChanged(TypedEventHandler<WiFiDirectDevice, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
WiFiDirectDevice::ConnectionStatusChanged_revoker ConnectionStatusChanged(auto_revoke_t, TypedEventHandler<WiFiDirectDevice, IInspectable const&> const& handler) const;
public event TypedEventHandler<WiFiDirectDevice,object> ConnectionStatusChanged;
function onConnectionStatusChanged(eventArgs) { /* Your code */ }
wiFiDirectDevice.addEventListener("connectionstatuschanged", onConnectionStatusChanged);
wiFiDirectDevice.removeEventListener("connectionstatuschanged", onConnectionStatusChanged);
- or -
wiFiDirectDevice.onconnectionstatuschanged = onConnectionStatusChanged;
Public Custom Event ConnectionStatusChanged As TypedEventHandler(Of WiFiDirectDevice, Object) 

Tipo de evento

Comentários

Você pode adicionar um manipulador para o evento ConnectionStatusChanged a ser notificado quando a conexão tiver sido estabelecida ou desconectada.

Aplica-se a

Confira também