February 14, 2014
Called when the user requests an action using some application-provided UI or the Universal Volume Control (UVC) and the application has requested notification of the action.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
protected virtual void OnUserAction( BackgroundAudioPlayer player, AudioTrack track, UserAction action, Object param )
- Type: Microsoft.Phone.BackgroundAudio.AudioTrack
The track playing at the time of the user action.
- Type: Microsoft.Phone.BackgroundAudio.UserAction
The action that the user has requested.
- Type: System.Object
The data associated with the requested action.
User actions do not automatically make any changes in system state; the agent is responsible for carrying out the user actions if they are supported.
In the current release, the param argument is used only if the action argument is Seek. If the action argument is UserAction.Seek, the param argument indicates the requested position in an audio track as a TimeSpan value.