MiracastReceiver 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 that allows an app to implement a Miracast Receiver (Sink) and receive incoming Miracast connections.
public ref class MiracastReceiver sealed
/// [Windows.Foundation.Metadata.Activatable(524288, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MiracastReceiver final
[Windows.Foundation.Metadata.Activatable(524288, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MiracastReceiver
function MiracastReceiver()
Public NotInheritable Class MiracastReceiver
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10, version 1903 (introduced in 10.0.18362.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v8.0)
|
Remarks
Miracast requires the device to support Wi-Fi Direct.
Constructors
MiracastReceiver() |
Creates a new instance of a MiracastReceiver object. |
Methods
ClearKnownTransmitters() |
Empties the collection of known MiracastTransmitter objects. |
CreateSession(CoreApplicationView) |
Creates a new MiracastReceiverSession object, needed to receive Miracast connections. |
CreateSessionAsync(CoreApplicationView) |
Asynchronously creates a new MiracastReceiverSession object, needed to receive Miracast connections. |
DisconnectAllAndApplySettings(MiracastReceiverSettings) |
Disconnects all currently connected Miracast connections and applies the specified settings on the MiracastReceiver. |
DisconnectAllAndApplySettingsAsync(MiracastReceiverSettings) |
Asynchronously disconnects all currently connected Miracast connections and applies the specified settings on the MiracastReceiver. |
GetCurrentSettings() |
Returns the settings currently used by the MiracastReceiver. |
GetCurrentSettingsAsync() |
Returns the settings currently used by the MiracastReceiver. |
GetDefaultSettings() |
Returns default settings for the MiracastReceiver. |
GetStatus() |
Retrieves the current status of the MiracastReceiver. |
GetStatusAsync() |
Asynchronously retrieves the current status of the MiracastReceiver. |
RemoveKnownTransmitter(MiracastTransmitter) |
Remove a specified MiracastTransmitter from the collection of known MiracastTransmitter objects . |
Events
StatusChanged |
An event that is raised when the status of the MiracastReceiver has changed. |