Delivers a message to a peer app on a proximate device.
Syntax
Windows.Networking.Proximity.PeerFinder.start(peerMessage);
Parameters
- peerMessage
-
Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]
The message to deliver to the proximate device.
Remarks
You can call the Start method to begin the process of finding a peer app and to make your app discoverable to remote peers that call the FindAllPeersAsync method. A peer is a computer that has an app running in the foreground with a matching AppId. A peer can also have a matching Browse Id that's specified as an alternate identity. For more information, see AlternateIdentities.
You can connect to only one peer at a time.
When an app is activated by tapping a nearby device, the activation parameters indicate whether the PeerFinder should be started or if the app was launched with activation arguments. You can use this overload of the Start method to send a message to a peer app that will be passed as an app activation argument. For more information, see the "Activating apps using Proximity" section of Supporting Proximity and Tapping.
Windows Phone 8
Wi-Fi Direct is not supported on Windows Phone 8. For more information, see Proximity.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Minimum supported phone | Windows Phone 8 |
|
Namespace |
|
|
Metadata |
|
|
Capabilities |
|
See also
- AlternateIdentities
- PeerFinder
- Start
- Proximity and Tapping (JavaScript)
- Proximity and Tapping (C#/VB/C++)
- Samples
- Proximity sample
Build date: 2/25/2013