Navigation
API > API/Plugins > API/Plugins/OnlineSubsystem > API/Plugins/OnlineSubsystem/IOnlineSession
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CreateSession
(
int32 HostingPlayerNum, |
Creates an online session based upon the settings object specified. | Interfaces/OnlineSessionInterface.h | |
bool CreateSession
(
const FUniqueNetId& HostingPlayerId, |
Creates an online session based upon the settings object specified. | Interfaces/OnlineSessionInterface.h |
CreateSession(int32, FName, const FOnlineSessionSettings &)
Description
Creates an online session based upon the settings object specified. NOTE: online session registration is an async process and does not complete until the OnCreateSessionComplete delegate is called.
| Name | CreateSession |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h |
| Include Path | #include "Interfaces/OnlineSessionInterface.h" |
bool CreateSession
(
int32 HostingPlayerNum,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings
)
true if successful creating the session, false otherwise
Parameters
| Name | Remarks |
|---|---|
| HostingPlayerNum | the index of the player hosting the session |
| SessionName | the name to use for this session so that multiple sessions can exist at the same time |
| NewSessionSettings | the settings to use for the new session |
CreateSession(const FUniqueNetId &, FName, const FOnlineSessionSettings &)
Description
Creates an online session based upon the settings object specified. NOTE: online session registration is an async process and does not complete until the OnCreateSessionComplete delegate is called.
| Name | CreateSession |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineSessionInterface.h |
| Include Path | #include "Interfaces/OnlineSessionInterface.h" |
bool CreateSession
(
const FUniqueNetId & HostingPlayerId,
FName SessionName,
const FOnlineSessionSettings & NewSessionSettings
)
true if successful creating the session, false otherwise
Parameters
| Name | Remarks |
|---|---|
| HostingPlayerId | the index of the player hosting the session |
| SessionName | the name to use for this session so that multiple sessions can exist at the same time |
| NewSessionSettings | the settings to use for the new session |