次の方法で共有


GlobalSystemMediaTransportControlsSession.MediaPropertiesChanged イベント

定義

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

// Register
event_token MediaPropertiesChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
GlobalSystemMediaTransportControlsSession::MediaPropertiesChanged_revoker MediaPropertiesChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSession,MediaPropertiesChangedEventArgs> MediaPropertiesChanged;
function onMediaPropertiesChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSession.addEventListener("mediapropertieschanged", onMediaPropertiesChanged);
globalSystemMediaTransportControlsSession.removeEventListener("mediapropertieschanged", onMediaPropertiesChanged);
- or -
globalSystemMediaTransportControlsSession.onmediapropertieschanged = onMediaPropertiesChanged;
Public Custom Event MediaPropertiesChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSession, MediaPropertiesChangedEventArgs) 

イベントの種類

Windows の要件

アプリの機能
globalMediaControl

適用対象