-api-id | -api-type | -api-device-family-note |
---|---|---|
E:Windows.Networking.Proximity.PeerWatcher.EnumerationCompleted |
winrt event |
xbox |
Occurs after a scan operation is complete and all peer apps within wireless range have been found.
EnumerationCompleted event is raised when an enumeration looking for peer apps within range is complete.
[!IMPORTANT] For Windows Phone 8.x apps, calling PeerFinder.ConnectAsync from within an EnumerationCompleted event handler will fail. Instead, call it outside of this event handler, for example, when the user has explicitly chosen to connect to a peer.
[!code-csharp_StartPeerWatcher]
[!code-csharp_PeerWatcherEnumerationCompleted]
Proximity and Tapping (C#/VB/C++), Proximity sample
proximity