Partager via


MiracastReceiverSession.ConnectionCreated Événement

Définition

Événement déclenché lors de la réception d’un nouveau MiracastReceiverConnection entrant.

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

Type d'événement

Remarques

L’application doit s’abonner à cet événement avant d’appeler la méthode MiracastReceiverSession.Start ou MiracastReceiverSession.StartAsync .

S’applique à

Voir aussi