BackgroundMediaPlayer.MessageReceivedFromForeground 이벤트

정의

포그라운드 작업에서 메시지를 받을 때 발생합니다.

참고

Windows 버전 1703부터 BackgroundMediaPlayer는 더 이상 사용되지 않으며 Windows의 이후 버전에서 사용하지 못할 수도 있습니다. 대신 MediaPlayer 클래스를 사용합니다. 자세한 내용은 백그라운드에서 미디어 재생을 참조하세요.

// Register
static event_token MessageReceivedFromForeground(EventHandler<MediaPlayerDataReceivedEventArgs> const& handler) const;

// Revoke with event_token
static void MessageReceivedFromForeground(event_token const* cookie) const;

// Revoke with event_revoker
static BackgroundMediaPlayer::MessageReceivedFromForeground_revoker MessageReceivedFromForeground(auto_revoke_t, EventHandler<MediaPlayerDataReceivedEventArgs> const& handler) const;
/// [add: Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
/// [remove: Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
// Register
static event_token MessageReceivedFromForeground(EventHandler<MediaPlayerDataReceivedEventArgs> const& handler) const;

// Revoke with event_token
static void MessageReceivedFromForeground(event_token const* cookie) const;

// Revoke with event_revoker
static BackgroundMediaPlayer::MessageReceivedFromForeground_revoker MessageReceivedFromForeground(auto_revoke_t, EventHandler<MediaPlayerDataReceivedEventArgs> const& handler) const;
public static event System.EventHandler<MediaPlayerDataReceivedEventArgs> MessageReceivedFromForeground;
[add: Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
[remove: Windows.Foundation.Metadata.Deprecated("Use MediaPlayer instead of BackgroundMediaPlayer.  For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 262144, "Windows.Foundation.UniversalApiContract")]
public static event System.EventHandler<MediaPlayerDataReceivedEventArgs> MessageReceivedFromForeground;
function onMessageReceivedFromForeground(eventArgs) { /* Your code */ }
Windows.Media.Playback.BackgroundMediaPlayer.addEventListener("messagereceivedfromforeground", onMessageReceivedFromForeground);
Windows.Media.Playback.BackgroundMediaPlayer.removeEventListener("messagereceivedfromforeground", onMessageReceivedFromForeground);
- or -
Windows.Media.Playback.BackgroundMediaPlayer.onmessagereceivedfromforeground = onMessageReceivedFromForeground;
Public Shared Custom Event MessageReceivedFromForeground As EventHandler(Of MediaPlayerDataReceivedEventArgs) 

이벤트 유형

특성

적용 대상