SystemMediaTransportControls.ShuffleEnabledChangeRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户修改 SystemMediaTransportControls 随机状态时发生。
// 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)
事件类型
注解
注册此事件会导致 在 SystemMediaTransportControls 随机状态更改时通知应用。 应用可以根据请求更改其随机状态,也可以忽略该请求并通过将 ShuffleEnabled 属性设置为反映应用的实际随机状态的值来更新 SystemMediaTransportControls。