WiFiDirectServiceAdvertiser.AutoAcceptSessionConnected Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Event raised when the service has automatically accepted a session request. Your event handler should establish socket connections for the endpoint pairs listed in the event arguments object.
// Register
event_token AutoAcceptSessionConnected(TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
// Revoke with event_token
void AutoAcceptSessionConnected(event_token const* cookie) const;
// Revoke with event_revoker
WiFiDirectServiceAdvertiser::AutoAcceptSessionConnected_revoker AutoAcceptSessionConnected(auto_revoke_t, TypedEventHandler<WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs const&> const& handler) const;
public event TypedEventHandler<WiFiDirectServiceAdvertiser,WiFiDirectServiceAutoAcceptSessionConnectedEventArgs> AutoAcceptSessionConnected;
function onAutoAcceptSessionConnected(eventArgs) { /* Your code */ }
wiFiDirectServiceAdvertiser.addEventListener("autoacceptsessionconnected", onAutoAcceptSessionConnected);
wiFiDirectServiceAdvertiser.removeEventListener("autoacceptsessionconnected", onAutoAcceptSessionConnected);
- or -
wiFiDirectServiceAdvertiser.onautoacceptsessionconnected = onAutoAcceptSessionConnected;
Public Custom Event AutoAcceptSessionConnected As TypedEventHandler(Of WiFiDirectServiceAdvertiser, WiFiDirectServiceAutoAcceptSessionConnectedEventArgs)