GlobalSystemMediaTransportControlsSession.TryTogglePlayPauseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to request the session to start or pause playback, based on its current playback state.
public:
virtual IAsyncOperation<bool> ^ TryTogglePlayPauseAsync() = TryTogglePlayPauseAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> TryTogglePlayPauseAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> TryTogglePlayPauseAsync();
function tryTogglePlayPauseAsync()
Public Function TryTogglePlayPauseAsync () As IAsyncOperation(Of Boolean)
Returns
True indicates success; False otherwise
- Attributes
Windows requirements
App capabilities |
globalMediaControl
|