MiracastReceiverSession.ConnectionCreated イベント

定義

新しい受信 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 メソッドを呼び出す前に、このイベントをサブスクライブする必要があります。

適用対象

こちらもご覧ください