MiracastReceiverSession.AllowConnectionTakeover Property

Definition

Specifies if the app allows a new connection to take over an in-progress Miracast Connection.

public:
 property bool AllowConnectionTakeover { bool get(); void set(bool value); };
bool AllowConnectionTakeover();

void AllowConnectionTakeover(bool value);
public bool AllowConnectionTakeover { get; set; }
var boolean = miracastReceiverSession.allowConnectionTakeover;
miracastReceiverSession.allowConnectionTakeover = boolean;
Public Property AllowConnectionTakeover As Boolean

Property Value

Boolean

bool

True if the app allows a new connection is allowed to take over an in-progress connection.

Remarks

When a connection is taken over, the old connection is automatically disconnected and MiracastReceiverSession.Disconnected event will be raised for the old connection, and MiracastReceiverSession.ConnectionCreated will be raised for the new connection.

The app must set this property before invoking the MiracastReceiverSession.Start or MiracastReceiverSession.StartAsync method in order for the setting to take effect.

If the Wi-Fi hardware does not support multiple simultaneous connections, it will not be possible for a new connection to take over an in-progress connection. Use MiracastReceiverStatus.IsConnectionTakeoverSupported to check if connection take-over is possible.

Applies to