次の方法で共有


WiFiDirectServiceSession.SessionStatusChanged イベント

定義

セッションの状態が変更されたときに発生するイベント。

// Register
event_token SessionStatusChanged(TypedEventHandler<WiFiDirectServiceSession, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
WiFiDirectServiceSession::SessionStatusChanged_revoker SessionStatusChanged(auto_revoke_t, TypedEventHandler<WiFiDirectServiceSession, IInspectable const&> const& handler) const;
public event TypedEventHandler<WiFiDirectServiceSession,object> SessionStatusChanged;
function onSessionStatusChanged(eventArgs) { /* Your code */ }
wiFiDirectServiceSession.addEventListener("sessionstatuschanged", onSessionStatusChanged);
wiFiDirectServiceSession.removeEventListener("sessionstatuschanged", onSessionStatusChanged);
- or -
wiFiDirectServiceSession.onsessionstatuschanged = onSessionStatusChanged;
Public Custom Event SessionStatusChanged As TypedEventHandler(Of WiFiDirectServiceSession, Object) 

イベントの種類

適用対象