Share via


MiracastReceiverListeningStatus Enum

Definition

Describes the status of the Miracast Receiver as it pertains to its ability to listen for incoming conections.

public enum class MiracastReceiverListeningStatus
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
enum class MiracastReceiverListeningStatus
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
public enum MiracastReceiverListeningStatus
var value = Windows.Media.Miracast.MiracastReceiverListeningStatus.notListening
Public Enum MiracastReceiverListeningStatus
Inheritance
MiracastReceiverListeningStatus
Attributes

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Fields

Name Value Description
NotListening 0

The Miracast Receiver is not currently listening for incoming connections.

Listening 1

The Miracast Receiver is listening for incoming connections.

ConnectionPending 2

The Miracast Receiver has received an incoming connection and is waiting for the app to accept or reject the connection.

Connected 3

At least one Miracast Transmitter is currently connected.

DisabledByPolicy 4

The Miracast Receiver has been disabled by administrative policy.

TemporarilyDisabled 5

The Miracast Receiver is temporarily disabled while other network activity is in progress.

Remarks

Attempting to use the PC as a Miracast Transmitter will cause the Miracast Receiver on the same PC, if enabled, to enter TemporarilyDisabled state. The Miracast Receiver will revert to its previous state once the PC is no longer transmitting. If the MiracastReceiverListeningStatus is Connected or ConnectionPending, the Miracast Receiver may also be listening for additional connections, if the Wi-Fi hardware supports multiple simulatenous connections, and if that functionality has been enabled.

Applies to