Share via


GlobalSystemMediaTransportControlsSession.TryTogglePlayPauseAsync Method

Definition

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

Applies to