Updating Lobby Session
Updating Session Settings

#include "KronosOnlineSession.h"// Get the online session. Note that the OnlineSession class is the manager
// and not the actual session we are updating!
UKronosOnlineSession* OnlineSession = UKronosOnlineSession::Get(this);
if (OnlineSession)
{
// Get the current session settings for the match that we are in.
FKronosSessionSettings UpdatedSettings;
if (OnlineSession->GetSessionSettings(NAME_GameSession, UpdatedSettings))
{
// Change the playlist of the match.
UpdatedSettings.Playlist = TEXT("NewPlaylist");
// Whether we want to push the changes to the backend (e.g. Steam) or not.
// If this is false, only the local player's view of the session will be updated.
bool bRefreshOnlineData = true;
// Update the session. This operation is async and may not finish immediately!
OnlineSession->UpdateSession(NAME_GameSession, UpdatedSettings, bRefreshOnlineData);
}
}Important Note About Null Online Subsystem
Last updated