MiracastReceiver.CreateSession(CoreApplicationView) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.