IOnlineSession::RegisterPlayers

Registers a group of players with the online service as being part of the online session

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h

Include

#include "Interfaces/OnlineSessionInterface.h"

Syntax

bool RegisterPlayers
(
    FName SessionName,
    const TArray< TSharedRef< const FUniqueNetId > > & Players,
    bool bWasInvited
)

Remarks

Registers a group of players with the online service as being part of the online session

Returns

true if the call succeeds, false otherwise

Parameters

Parameter

Description

SessionName

the name of the session the player is joining

Players

the list of players to register with the online service

bWasInvited

was this list of players invited

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss