MiracastReceiver.StatusChanged 事件

定义

当 MiracastReceiver 的状态发生更改时引发的事件。

// 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) 

事件类型

注解

使用 GetStatusGetStatusAsync 检索最新状态。

适用于

另请参阅