Switches the SmartGlass device to the specified mode.
public:
IAsyncAction^ SetActiveSurfaceAsync(
ISmartGlassSurface^ surface
)
surface
Type: ISmartGlassSurface
The surface to be activated.
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.
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.
Namespace: Windows.Xbox.SmartGlass
Metadata: windows.winmd