SystemMediaTransportControls.ShuffleEnabledChangeRequested Event

Definition

Occurs when the user modifies the SystemMediaTransportControls shuffle state.

// Register
event_token ShuffleEnabledChangeRequested(TypedEventHandler<SystemMediaTransportControls, ShuffleEnabledChangeRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SystemMediaTransportControls::ShuffleEnabledChangeRequested_revoker ShuffleEnabledChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, ShuffleEnabledChangeRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,ShuffleEnabledChangeRequestedEventArgs> ShuffleEnabledChangeRequested;
function onShuffleEnabledChangeRequested(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("shuffleenabledchangerequested", onShuffleEnabledChangeRequested);
systemMediaTransportControls.removeEventListener("shuffleenabledchangerequested", onShuffleEnabledChangeRequested);
- or -
systemMediaTransportControls.onshuffleenabledchangerequested = onShuffleEnabledChangeRequested;
Public Custom Event ShuffleEnabledChangeRequested As TypedEventHandler(Of SystemMediaTransportControls, ShuffleEnabledChangeRequestedEventArgs) 

Event Type

Remarks

Registering for this event causes an app to be notified when the SystemMediaTransportControls shuffle state changes. An app can change its shuffle state based on the request or ignore the request and update the SystemMediaTransportControls by setting the ShuffleEnabled property to a value that reflects the app's actual shuffle state.

Applies to