AudioPlayerAgent.OnUserAction Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
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)
'Declaration Protected Overridable Sub OnUserAction ( _ player As BackgroundAudioPlayer, _ track As AudioTrack, _ action As UserAction, _ param As Object _ )
Parameters
- track
- Type: Microsoft.Phone.BackgroundAudio.AudioTrack
The track playing at the time of the user action.
- action
- Type: Microsoft.Phone.BackgroundAudio.UserAction
The action that the user has requested.
- param
- 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.
Caution: |
|---|
This API is not supported for Silverlight 8.1 apps. |
Caution: