Share via


MiracastReceiverConnection Class

Definition

Represents a single connection between a Miracast Receiver and a Miracast Transmitter.

public ref class MiracastReceiverConnection sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MiracastReceiverConnection final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MiracastReceiverConnection : System.IDisposable
Public NotInheritable Class MiracastReceiverConnection
Implements IDisposable
Inheritance
Object Platform::Object IInspectable MiracastReceiverConnection
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

CursorImageChannel

Gets the channel for transmitting mouse cursor images from a Miracast Transmitter to a Miracast Receiver.

InputDevices

Gets the devices from which the Miracast Receiver can collect input and transmit to the Miracast Transmitter.

StreamControl

Gets a MiracastReceiverStreamControl object, which is used for controlling properties of the audio and video streams.

Transmitter

Gets an MiracastTransmitter object representing the Miracast Transmitter that initiated the connection.

Methods

Close()

Closes the connection and immediately disconnects the associated MiracastTransmitter from this connection.

Disconnect(MiracastReceiverDisconnectReason, String)

Closes the connection and immediately disconnects the connected MiracastTransmitter.

Disconnect(MiracastReceiverDisconnectReason)

Closes the connection and immediately disconnects the connected MiracastTransmitter.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Pause()

Requests the Miracast Transmitter to pause streaming audio and video data to the Receiver. The connection remains established.

PauseAsync()

Asynchronously requests the Miracast Transmitter to pause streaming audio and video data to the Receiver. The connection remains established.

Resume()

Requests the Miracast Transmitter to resume streaming audio and video data to the MiracastReceiver.

ResumeAsync()

Requests the Miracast Transmitter to resume streaming audio and video data to the MiracastReceiver.

Applies to