ProjectionManager.StartProjectingAsync ProjectionManager.StartProjectingAsync ProjectionManager.StartProjectingAsync ProjectionManager.StartProjectingAsync ProjectionManager.StartProjectingAsync Method

Definition

Overloads

StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32)

Asynchronously sends a window (app view) to the projector or other secondary display.

StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation)

Asynchronously sends a window (app view) to the projector or other secondary display, and provides info about the display.

StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32) StartProjectingAsync(Int32, Int32)

Asynchronously sends a window (app view) to the projector or other secondary display.

public : static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId)
static IAsyncAction StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId) const;
public static IAsyncAction StartProjectingAsync(Int32 projectionViewId, Int32 anchorViewId)
Public Shared Function StartProjectingAsync(projectionViewId As Int32, anchorViewId As Int32) As IAsyncAction
Windows.UI.ViewManagement.ProjectionManager.startProjectingAsync(projectionViewId, anchorViewId).done( /* Your success and error handlers */ );

Parameters

projectionViewId
Int32 Int32 Int32

The new ID of the window to be displayed by the projector or other secondary display.

anchorViewId
Int32 Int32 Int32

The ID of the original window before projection.

Returns

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

Remarks

If this method succeeds, an existing window (app view) is placed on a secondary display, if one is detected. Otherwise, the window is placed on the primary display. This window can only be accessed from an ASTA UI thread.

The moved window has its own ASTA UI thread and associated CoreWindow. Always use thread-safe methods, such as window.postMessage for JavaScript apps or the CoreDispatcher event messaging API for C# and C++ apps, when communicating between the windows.

Either the current app view window or the projection view window must be active for this call to succeed. The view ID can be obtained for the current app view with ApplicationView.Id. For a specific app view managed by the app, call ApplicationView.GetApplicationViewIdForWindow with the CoreWindow for the app view.

See also

StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation) StartProjectingAsync(Int32, Int32, DeviceInformation)

Asynchronously sends a window (app view) to the projector or other secondary display, and provides info about the display.

public : static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId, DeviceInformation displayDeviceInfo)
static IAsyncAction StartProjectingAsync(int32_t projectionViewId, int32_t anchorViewId, DeviceInformation displayDeviceInfo) const;
public static IAsyncAction StartProjectingAsync(Int32 projectionViewId, Int32 anchorViewId, DeviceInformation displayDeviceInfo)
Public Shared Function StartProjectingAsync(projectionViewId As Int32, anchorViewId As Int32, displayDeviceInfo As DeviceInformation) As IAsyncAction
Windows.UI.ViewManagement.ProjectionManager.startProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo).done( /* Your success and error handlers */ );

Parameters

projectionViewId
Int32 Int32 Int32

The new ID of the window to be displayed by the projector or other secondary display.

anchorViewId
Int32 Int32 Int32

The ID of the original window before projection.

displayDeviceInfo
DeviceInformation DeviceInformation DeviceInformation

Information about the display device.

Returns

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

Remarks

If this method succeeds, an existing window (app view) is placed on a secondary display, if one is detected. Otherwise, the window is placed on the primary display. This window can only be accessed from an ASTA UI thread.

The moved window has its own ASTA UI thread and associated CoreWindow. Always use thread-safe methods, such as window.postMessage for JavaScript apps or the CoreDispatcher event messaging API for C# and C++ apps, when communicating between the windows.

Either the current app view window or the projection view window must be active for this call to succeed. The view ID can be obtained for the current app view with ApplicationView.Id. For a specific app view managed by the app, call ApplicationView.GetApplicationViewIdForWindow with the CoreWindow for the app view.

See also