GlobalSystemMediaTransportControlsSessionManager.SessionsChanged 事件

定义

当可用会话列表由于新会话连接或现有会话断开连接而发生更改时发生。

// Register
event_token SessionsChanged(TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs const&> const& handler) const;

// Revoke with event_token
void SessionsChanged(event_token const* cookie) const;

// Revoke with event_revoker
GlobalSystemMediaTransportControlsSessionManager::SessionsChanged_revoker SessionsChanged(auto_revoke_t, TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<GlobalSystemMediaTransportControlsSessionManager,SessionsChangedEventArgs> SessionsChanged;
function onSessionsChanged(eventArgs) { /* Your code */ }
globalSystemMediaTransportControlsSessionManager.addEventListener("sessionschanged", onSessionsChanged);
globalSystemMediaTransportControlsSessionManager.removeEventListener("sessionschanged", onSessionsChanged);
- or -
globalSystemMediaTransportControlsSessionManager.onsessionschanged = onSessionsChanged;
Public Custom Event SessionsChanged As TypedEventHandler(Of GlobalSystemMediaTransportControlsSessionManager, SessionsChangedEventArgs) 

事件类型

Windows 要求

应用功能
globalMediaControl

适用于