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.
The PeerFinder class has these types of members:
The PeerFinder class has these events.
|ConnectionRequested||Occurs when a remote peer requests a connection using the ConnectAsync method.|
|TriggeredConnectionStateChanged||Occurs during a tap gesture from a remote peer.|
The PeerFinder class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|ConnectAsync||Connects to a peer discovered by a call to the FindAllPeersAsync method.|
|CreateWatcher||Creates a new instance of a PeerWatcher object for dynamic discovery of peer apps.|
|FindAllPeersAsync||Asynchronously browses for peer devices that are running the same app within wireless range.|
|Start()||Makes an app discoverable to remote peers.|
|Start(String)||Makes an app discoverable to remote peers.|
|Stop||Stops advertising for a peer connection.|
The PeerFinder class has these properties.
|Read/write||Specifies whether the PeerFinder class may connect a StreamSocket object by using Bluetooth.|
|Read/write||Specifies whether the PeerFinder class may connect to a StreamSocket object using TCP/IP.|
|Read/write||Specifies whether the PeerFinder class may connect a StreamSocket object by using Wi-Fi Direct.|
|Read-only||Gets a list of alternate appId values to match with peer applications on other platforms.|
|Read/write||Gets or sets user or device data to include during device discovery.|
|Read/write||Gets or sets the name that identifies your computer to remote peers.|
|Read/write||Gets or sets the role of the app in peer-to-peer connections.|
|Read-only||Gets a value that indicates which discovery options are available to use with the PeerFinder class.|
The Proximity APIs do not provide authentication. You should avoid exchanging sensitive data with these APIs.
Minimum supported client
|Windows 8 [Windows Store apps only]|
Minimum supported server
|Windows Server 2012 [Windows Store apps only]|
Minimum supported phone
|Windows Phone 8|