Aracılığıyla paylaş


ProjectionManager.StartProjectingAsync Method

Definition

Overloads

StartProjectingAsync(Int32, Int32)

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

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)

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

public:
 static IAsyncAction ^ StartProjectingAsync(int projectionViewId, int anchorViewId);
/// [Windows.Foundation.Metadata.Overload("StartProjectingAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction StartProjectingAsync(int const& projectionViewId, int const& anchorViewId);
[Windows.Foundation.Metadata.Overload("StartProjectingAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId);
function startProjectingAsync(projectionViewId, anchorViewId)
Public Shared Function StartProjectingAsync (projectionViewId As Integer, anchorViewId As Integer) As IAsyncAction

Parameters

projectionViewId
Int32

int

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

anchorViewId
Int32

int

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.

Attributes

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

Applies to

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);
/// [Windows.Foundation.Metadata.Overload("StartProjectingWithDeviceInfoAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncAction StartProjectingAsync(int const& projectionViewId, int const& anchorViewId, DeviceInformation const& displayDeviceInfo);
[Windows.Foundation.Metadata.Overload("StartProjectingWithDeviceInfoAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncAction StartProjectingAsync(int projectionViewId, int anchorViewId, DeviceInformation displayDeviceInfo);
function startProjectingAsync(projectionViewId, anchorViewId, displayDeviceInfo)
Public Shared Function StartProjectingAsync (projectionViewId As Integer, anchorViewId As Integer, displayDeviceInfo As DeviceInformation) As IAsyncAction

Parameters

projectionViewId
Int32

int

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

anchorViewId
Int32

int

The ID of the original window before projection.

displayDeviceInfo
DeviceInformation

Information about the display device.

Returns

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

Attributes

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

Applies to