Compartir a través de


PlayToManager.SourceSelected Evento

Definición

Se produce cuando se ha seleccionado un elemento de origen Play To.

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

Comentarios

En una aplicación habilitada para Reproducir a, el usuario selecciona el acceso Dispositivos (o play to UI) para transmitir audio, vídeo o imágenes de la aplicación a un dispositivo de destino. El evento SourceSelected se desencadena después de que el usuario haya seleccionado un dispositivo de destino. Si el usuario sale del acceso Dispositivos o la interfaz de usuario Reproducir a sin seleccionar un dispositivo de destino, el evento SourceSelected no se activa.

Se aplica a

Consulte también