MiracastReceiverSession.ConnectionCreated 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
收到新的传入 MiracastReceiverConnection 时引发的事件。
// Register
event_token ConnectionCreated(TypedEventHandler<MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs const&> const& handler) const;
// Revoke with event_token
void ConnectionCreated(event_token const* cookie) const;
// Revoke with event_revoker
MiracastReceiverSession::ConnectionCreated_revoker ConnectionCreated(auto_revoke_t, TypedEventHandler<MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs const&> const& handler) const;
public event TypedEventHandler<MiracastReceiverSession,MiracastReceiverConnectionCreatedEventArgs> ConnectionCreated;
function onConnectionCreated(eventArgs) { /* Your code */ }
miracastReceiverSession.addEventListener("connectioncreated", onConnectionCreated);
miracastReceiverSession.removeEventListener("connectioncreated", onConnectionCreated);
- or -
miracastReceiverSession.onconnectioncreated = onConnectionCreated;
Public Custom Event ConnectionCreated As TypedEventHandler(Of MiracastReceiverSession, MiracastReceiverConnectionCreatedEventArgs)
事件类型
注解
应用必须在调用 MiracastReceiverSession.Start 或 MiracastReceiverSession.StartAsync 方法之前订阅此事件。