Compartilhar via


PlayToManager.SourceSelected Evento

Definição

Ocorre quando um elemento de origem Reproduzir para foi selecionado.

/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
// Register
event_token SourceSelected(TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PlayToManager::SourceSelected_revoker SourceSelected(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
// Register
event_token SourceSelected(TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
PlayToManager::SourceSelected_revoker SourceSelected(auto_revoke_t, TypedEventHandler<PlayToManager, PlayToSourceSelectedEventArgs const&> const& handler) const;
[add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public event TypedEventHandler<PlayToManager,PlayToSourceSelectedEventArgs> SourceSelected;
[add: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("PlayToManager may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public event TypedEventHandler<PlayToManager,PlayToSourceSelectedEventArgs> SourceSelected;
function onSourceSelected(eventArgs) { /* Your code */ }
playToManager.addEventListener("sourceselected", onSourceSelected);
playToManager.removeEventListener("sourceselected", onSourceSelected);
- or -
playToManager.onsourceselected = onSourceSelected;
Public Custom Event SourceSelected As TypedEventHandler(Of PlayToManager, PlayToSourceSelectedEventArgs) 

Tipo de evento

Atributos

Comentários

Em um aplicativo habilitado para Reproduzir para, o usuário seleciona o botão Dispositivos (ou a interface do usuário reproduzir) para transmitir áudio, vídeo ou imagens do aplicativo para um dispositivo de destino. O evento SourceSelected é acionado depois que o usuário seleciona um dispositivo de destino. Se o usuário sair do botão Dispositivos ou da interface do usuário do Play To sem selecionar um dispositivo de destino, o evento SourceSelected não será acionado.

Aplica-se a

Confira também