MediaPlaybackList.CurrentItemChanged MediaPlaybackList.CurrentItemChanged MediaPlaybackList.CurrentItemChanged MediaPlaybackList.CurrentItemChanged MediaPlaybackList.CurrentItemChanged Event

Definition

Occurs when the currently playing MediaPlaybackItem changes.

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

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

// Revoke with event_revoker
CurrentItemChanged_revoker CurrentItemChanged(auto_revoke_t, TypedEventHandler<MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs> const& handler) const;
public event TypedEventHandler<MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs> CurrentItemChanged
Public Event CurrentItemChanged As TypedEventHandler (Of MediaPlaybackList, CurrentMediaPlaybackItemChangedEventArgs)
function onCurrentItemChanged(eventArgs){/* Your code */}


mediaPlaybackList.addEventListener("currentitemchanged", onCurrentItemChanged);
mediaPlaybackList.removeEventListener("currentitemchanged", onCurrentItemChanged);