-api-id | -api-type | -api-device-family-note |
---|---|---|
T:Windows.Networking.Proximity.PeerFinder |
winrt class |
xbox |
Enables you to discover other instances of your app on nearby devices and create a socket connection between the peer apps by using a tap gesture or by browsing. For creating Bluetooth socket connections on Windows 8.1 and later, use Windows.Devices.Bluetooth.Rfcomm instead.
Important
The Proximity APIs do not provide authentication. You should avoid exchanging sensitive data with these APIs.
[!code-csharpConnect_CS]
[!code-vbConnect_CS]
Proximity and Tapping (C#/VB/C++), Proximity sample
proximity ID_CAP_PROXIMITY [Windows Phone], ID_CAP_NETWORKING [Windows Phone], ID_CAP_NETWORKING [Windows Phone]