MediaPlaybackCommandManager.PositionReceived 事件

定义

当命令管理器收到从系统媒体传输控件更改当前播放位置的命令时发生。

// Register
event_token PositionReceived(TypedEventHandler<MediaPlaybackCommandManager, MediaPlaybackCommandManagerPositionReceivedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MediaPlaybackCommandManager::PositionReceived_revoker PositionReceived(auto_revoke_t, TypedEventHandler<MediaPlaybackCommandManager, MediaPlaybackCommandManagerPositionReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackCommandManager,MediaPlaybackCommandManagerPositionReceivedEventArgs> PositionReceived;
function onPositionReceived(eventArgs) { /* Your code */ }
mediaPlaybackCommandManager.addEventListener("positionreceived", onPositionReceived);
mediaPlaybackCommandManager.removeEventListener("positionreceived", onPositionReceived);
- or -
mediaPlaybackCommandManager.onpositionreceived = onPositionReceived;
Public Custom Event PositionReceived As TypedEventHandler(Of MediaPlaybackCommandManager, MediaPlaybackCommandManagerPositionReceivedEventArgs) 

事件类型

适用于