Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 2.38 KB

messagetransmittedhandler.md

File metadata and controls

41 lines (28 loc) · 2.38 KB
-api-id -api-type -api-device-family-note
T:Windows.Networking.Proximity.MessageTransmittedHandler
winrt delegate
xbox

Windows.Networking.Proximity.MessageTransmittedHandler

-description

Describes the method that will handle the event that's fired when a published message has been transmitted.

-parameters

-param sender

The proximity device that published the message.

-param messageId

The publication ID of the message.

-remarks

Messages continue to be published until the StopPublishingMessage method is called or the ProximityDevice on the publishing computer is released. Messages are delivered to all apps that have subscribed for the same message type.

When using the PublishMessage method, the only supported message type is one that begins with "Windows.". To publish messages using another message type, such as "WindowsMime." or "NDEF:WriteTag", you must use the PublishBinaryMessage method.

The MessageTransmittedHandler delegate is called each time a message is successfully transmitted to a device, regardless of whether any apps were subscribed to the message on that device.

-examples

[!code-csharpPublishSubscribe2]

[!code-vbPublishSubscribe2]

-see-also

PublishMessage(String, String, MessageTransmittedHandler), PublishBinaryMessage(String, IBuffer, MessageTransmittedHandler), PublishUriMessage(Uri, MessageTransmittedHandler), Proximity and Tapping (C#/VB/C++), Proximity sample

-capabilities

proximity ID_CAP_PROXIMITY [Windows Phone], ID_CAP_PROXIMITY [Windows Phone]