次の方法で共有


MiracastReceiverSession.MediaSourceCreated イベント

定義

MiracastReceiverConnectionMediaSource オブジェクトが作成されたときに発生するイベント。

// Register
event_token MediaSourceCreated(TypedEventHandler<MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MiracastReceiverSession::MediaSourceCreated_revoker MediaSourceCreated(auto_revoke_t, TypedEventHandler<MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs const&> const& handler) const;
public event TypedEventHandler<MiracastReceiverSession,MiracastReceiverMediaSourceCreatedEventArgs> MediaSourceCreated;
function onMediaSourceCreated(eventArgs) { /* Your code */ }
miracastReceiverSession.addEventListener("mediasourcecreated", onMediaSourceCreated);
miracastReceiverSession.removeEventListener("mediasourcecreated", onMediaSourceCreated);
- or -
miracastReceiverSession.onmediasourcecreated = onMediaSourceCreated;
Public Custom Event MediaSourceCreated As TypedEventHandler(Of MiracastReceiverSession, MiracastReceiverMediaSourceCreatedEventArgs) 

イベントの種類

注釈

アプリは、MiracastReceiverSession.Start メソッドまたは MiracastReceiverSession.StartAsync メソッドを呼び出す前に、このイベントをサブスクライブする必要があります。

適用対象

こちらもご覧ください