SystemMediaTransportControls.PlaybackPositionChangeRequested 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于使用者修改 SystemMediaTransportControls的播放位置時。
// Register
event_token PlaybackPositionChangeRequested(TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void PlaybackPositionChangeRequested(event_token const* cookie) const;
// Revoke with event_revoker
SystemMediaTransportControls::PlaybackPositionChangeRequested_revoker PlaybackPositionChangeRequested(auto_revoke_t, TypedEventHandler<SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<SystemMediaTransportControls,PlaybackPositionChangeRequestedEventArgs> PlaybackPositionChangeRequested;
function onPlaybackPositionChangeRequested(eventArgs) { /* Your code */ }
systemMediaTransportControls.addEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);
systemMediaTransportControls.removeEventListener("playbackpositionchangerequested", onPlaybackPositionChangeRequested);
- or -
systemMediaTransportControls.onplaybackpositionchangerequested = onPlaybackPositionChangeRequested;
Public Custom Event PlaybackPositionChangeRequested As TypedEventHandler(Of SystemMediaTransportControls, PlaybackPositionChangeRequestedEventArgs)
事件類型
備註
註冊此事件會導致 應用程式在 SystemMediaTransportControls 播放位置變更時收到通知。 應用程式可以根據要求變更其自動重複行為,或藉由填入SystemMediaTransportControlsTimelineProperties 物件來填入 SystemMediaTransportControlsTimelineProperties物件,並以指出實際播放位置並呼叫SystemMediaTransportControls.UpdateTimelineProperties 的值來更新 SystemMediaTransportControls。