次の方法で共有


GlobalSystemMediaTransportControlsSession.PlaybackInfoChanged イベント

定義

セッションの再生情報が変更されたときに発生します。

// Register
event_token PlaybackInfoChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GlobalSystemMediaTransportControlsSession::PlaybackInfoChanged_revoker PlaybackInfoChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSession,PlaybackInfoChangedEventArgs> PlaybackInfoChanged;
function onPlaybackInfoChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSession.addEventListener("playbackinfochanged", onPlaybackInfoChanged);
globalSystemMediaTransportControlsSession.removeEventListener("playbackinfochanged", onPlaybackInfoChanged);
- or -
globalSystemMediaTransportControlsSession.onplaybackinfochanged = onPlaybackInfoChanged;
Public Custom Event PlaybackInfoChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSession, PlaybackInfoChangedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
globalMediaControl

適用対象