GlobalSystemMediaTransportControlsSessionManager Class

Definition

Provides access to playback sessions throughout the system that have integrated with SystemMediaTransportControls to provide playback info and allow remote control.

public ref class GlobalSystemMediaTransportControlsSessionManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class GlobalSystemMediaTransportControlsSessionManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class GlobalSystemMediaTransportControlsSessionManager
Public NotInheritable Class GlobalSystemMediaTransportControlsSessionManager
Inheritance
Object Platform::Object IInspectable GlobalSystemMediaTransportControlsSessionManager
Attributes

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)
App capabilities
globalMediaControl

Methods

GetCurrentSession()

Gets the current session. This is the session the system believes the user would most likely want to control.

GetSessions()

Gets all of the available sessions.

RequestAsync()

Requests an instance of the GlobalSystemMediaTransportControlsSessionManager.

Events

CurrentSessionChanged

Occurs when the current session has changed. This is the session that the system believes is the one the user would most likely want to control.

SessionsChanged

Occurs when the list of available sessions has changed due to a new session connecting or an existing one disconnecting.

Applies to