Share via


MiracastReceiver.CreateSession(CoreApplicationView) Method

Definition

Creates a new MiracastReceiverSession object, needed to receive Miracast connections.

public:
 virtual MiracastReceiverSession ^ CreateSession(CoreApplicationView ^ view) = CreateSession;
MiracastReceiverSession CreateSession(CoreApplicationView const& view);
public MiracastReceiverSession CreateSession(CoreApplicationView view);
function createSession(view)
Public Function CreateSession (view As CoreApplicationView) As MiracastReceiverSession

Parameters

view
CoreApplicationView

The CoreApplicationView used by the app when displaying the Miracast video stream.

Returns

The new MiracastReceiverSession object.

Remarks

Because this method may block for a noticeable period of time, you should not call it from the UI thread or from a single-threaded apartment. Instead, use the asyncronous method CreateSessionAsync.

Applies to

See also