MiracastReceiverSession.MediaSourceCreated 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立MiracastReceiverConnection的MediaSource物件時所引發的事件。
// 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 方法。