Windows Dev Center

ProjectionManager.SwapDisplaysForViewsAsync | swapDisplaysForViewsAsync method

Asynchronously swaps the calling window (app view) with the window displayed on the projector or other secondary display. The result is that the calling window is displayed on the projector, and the formerly projected window is displayed on the device screen.

Syntax


Windows.UI.ViewManagement.ProjectionManager.swapDisplaysForViewsAsync(projectionViewId, anchorViewId).done( /* Your success and error handlers */ );

Parameters

projectionViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The ID of the window currently displayed by the projector.

anchorViewId

Type: Number [JavaScript] | System.Int32 [.NET] | int32 [C++]

The ID of the window to swap with the projected window.

Return value

Type: IAsyncAction

The asynchronous results of the operation. Use this to determine when the async call is complete.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.UI.ViewManagement
Windows::UI::ViewManagement [C++]

Metadata

Windows.winmd

See also

ProjectionManager

 

 

Show:
© 2015 Microsoft