SmartGlassHtmlSurface.MessageReceived Event

Event raised when a JSON message is received from a SmartGlass device.

Syntax

public:
event TypedEventHandler<SmartGlassHtmlSurface^ , SmartGlassMessageReceivedEventArgs^ >^ MessageReceived {
         EventRegistrationToken add (TypedEventHandler<SmartGlassHtmlSurface^ , SmartGlassMessageReceivedEventArgs^ >^ value);
         void remove (EventRegistrationToken token);
}  

Remarks

The maximum size of the message is 65,532 bytes. Although the strings that the device sends use either UTF-32 or UTF-16 encoding depending on the platform, the messages are converted to UTF-8 encoding for transmission across the network. The size limit applies to the UTF-8 encoded format of the string.

Requirements

Namespace: Windows.Xbox.SmartGlass

Metadata: windows.winmd

See also

Reference

SmartGlassHtmlSurface Class

SmartGlassHtmlSurface Members

Windows.Xbox.SmartGlass Namespace