GlobalSystemMediaTransportControlsSessionManager GlobalSystemMediaTransportControlsSessionManager GlobalSystemMediaTransportControlsSessionManager GlobalSystemMediaTransportControlsSessionManager 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 : sealed class GlobalSystemMediaTransportControlsSessionManager
struct winrt::Windows::Media::Control::GlobalSystemMediaTransportControlsSessionManager
public sealed class GlobalSystemMediaTransportControlsSessionManager
Public NotInheritable Class GlobalSystemMediaTransportControlsSessionManager
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)

Methods

GetCurrentSession() GetCurrentSession() GetCurrentSession() GetCurrentSession() GetCurrentSession()

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

GetSessions() GetSessions() GetSessions() GetSessions() GetSessions()

Gets all of the available sessions.

RequestAsync() RequestAsync() RequestAsync() RequestAsync() RequestAsync()

Requests an instance of the GlobalSystemMediaTransportControlsSessionManager.

Events

CurrentSessionChanged CurrentSessionChanged CurrentSessionChanged CurrentSessionChanged 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 SessionsChanged SessionsChanged SessionsChanged SessionsChanged

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