MiracastReceiverSession Class
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.
An object which encapsulates functionality related to receiving incoming Miracast connections.
public ref class MiracastReceiverSession sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MiracastReceiverSession final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MiracastReceiverSession : System.IDisposable
Public NotInheritable Class MiracastReceiverSession
Implements IDisposable
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Properties
AllowConnectionTakeover |
Specifies if the app allows a new connection to take over an in-progress Miracast Connection. |
MaxSimultaneousConnections |
Specifies the maximum number of simultaneous connections that the app is willing to handle on the MiracastReceiverSession. |
Methods
Close() |
Closes the MiracastReceiverSession object and disconnects any associated MiracastReceiverConnection objects. |
Dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Start() |
Start listening for incoming Miracast connections. |
StartAsync() |
Start listening for incoming Miracast connections. |
Events
ConnectionCreated |
An event which is raised when a new incoming MiracastReceiverConnection is received. |
Disconnected |
An event which is raised when a MiracastReceiverConnection has been disconnected by the Miracast Transmitter. |
MediaSourceCreated |
An event which is raised when the MediaSource object for a MiracastReceiverConnection has been created. |