Share via


MiracastReceiver.StatusChanged Event

Definition

An event that is raised when the status of the MiracastReceiver has changed.

// Register
event_token StatusChanged(TypedEventHandler<MiracastReceiver, IInspectable const&> const& handler) const;

// Revoke with event_token
void StatusChanged(event_token const* cookie) const;

// Revoke with event_revoker
MiracastReceiver::StatusChanged_revoker StatusChanged(auto_revoke_t, TypedEventHandler<MiracastReceiver, IInspectable const&> const& handler) const;
public event TypedEventHandler<MiracastReceiver,object> StatusChanged;
function onStatusChanged(eventArgs) { /* Your code */ }
miracastReceiver.addEventListener("statuschanged", onStatusChanged);
miracastReceiver.removeEventListener("statuschanged", onStatusChanged);
- or -
miracastReceiver.onstatuschanged = onStatusChanged;
Public Custom Event StatusChanged As TypedEventHandler(Of MiracastReceiver, Object) 

Event Type

Remarks

Use GetStatus or GetStatusAsync to retrieve the latest status.

Applies to

See also