SmartGlassDevice.SetActiveSurfaceAsync Method

Switches the SmartGlass device to the specified mode.

Syntax

public:
IAsyncAction^ SetActiveSurfaceAsync(
         ISmartGlassSurface^ surface
)  

Parameters

surface
Type: ISmartGlassSurface 

The surface to be activated.

Return value

Type: IAsyncAction 

Returns an IAsyncAction object that represents the state of the asynchronous operation. Completion of the asynchronous operation is signaled by using a handler that is passed to the IAsyncAction.Completed property.

Remarks

The mode is determined based on the ISmartGlassSurface instance passed as a parameter. Passing in a SmartGlassDirectSurface instance enables device input and remote rendering. Passing in a SmartGlassHtmlSurface instance enables hosting HTML and JavaScript on the device.

Requirements

Namespace: Windows.Xbox.SmartGlass

Metadata: windows.winmd

See also

Reference

SmartGlassDevice Class

SmartGlassDevice Members

Windows.Xbox.SmartGlass Namespace