共用方式為


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) 

事件類型

適用於