Share via


MiracastReceiver Class

Definition

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
Object Platform::Object IInspectable MiracastReceiver
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.

Applies to

See also