次の方法で共有


MediaPlaybackList.CurrentItemChanged イベント

定義

現在再生中の MediaPlaybackItem が 変更されたときに発生します。

// Register
event_token CurrentItemChanged(TypedEventHandler<MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlaybackList::CurrentItemChanged_revoker CurrentItemChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackList,CurrentMediaPlaybackItemChangedEventArgs> CurrentItemChanged;
function onCurrentItemChanged(eventArgs) { /* Your code */ }
mediaPlaybackList.addEventListener("currentitemchanged", onCurrentItemChanged);
mediaPlaybackList.removeEventListener("currentitemchanged", onCurrentItemChanged);
- or -
mediaPlaybackList.oncurrentitemchanged = onCurrentItemChanged;
Public Custom Event CurrentItemChanged As TypedEventHandler(Of MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs) 

イベントの種類

適用対象