SystemMediaTransportControls.AutoRepeatModeChangeRequested 事件

定义

当用户修改 SystemMediaTransportControls 自动重复模式时发生。

// Register
event_token AutoRepeatModeChangeRequested(TypedEventHandler<SystemMediaTransportControls, AutoRepeatModeChangeRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
SystemMediaTransportControls::AutoRepeatModeChangeRequested_revoker AutoRepeatModeChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, AutoRepeatModeChangeRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,AutoRepeatModeChangeRequestedEventArgs> AutoRepeatModeChangeRequested;
function onAutoRepeatModeChangeRequested(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("autorepeatmodechangerequested", onAutoRepeatModeChangeRequested);
systemMediaTransportControls.removeEventListener("autorepeatmodechangerequested", onAutoRepeatModeChangeRequested);
- or -
systemMediaTransportControls.onautorepeatmodechangerequested = onAutoRepeatModeChangeRequested;
Public Custom Event AutoRepeatModeChangeRequested As TypedEventHandler(Of SystemMediaTransportControls, AutoRepeatModeChangeRequestedEventArgs) 

事件类型

注解

注册此事件会导致 在 SystemMediaTransportControls 自动重复模式更改时通知应用。 应用可以根据请求更改其自动重复行为,也可以忽略请求,并通过将 AutoRepeatMode 属性设置为反映应用的实际自动重复状态的值来更新 SystemMediaTransportControls

适用于