Partager via


MediaPlaybackCommandManager.PositionReceived Événement

Définition

Se produit lorsque le gestionnaire de commandes reçoit une commande modifiant la position de lecture actuelle des contrôles de transport du support système.

// 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) 

Type d'événement

S’applique à