Compartilhar via


MiracastReceiverSession.MediaSourceCreated Evento

Definição

Um evento que é gerado quando o objeto MediaSource para um MiracastReceiverConnection foi criado.

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

Tipo de evento

Comentários

O aplicativo deve assinar esse evento antes de invocar o método MiracastReceiverSession.Start ou MiracastReceiverSession.StartAsync .

Aplica-se a

Confira também