IOnlineSubsystem

OnlineSubsystem - Series of interfaces to support communicating with various web/platform layer services

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

OnlineSubsystem

Header

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

Include

#include "OnlineSubsystem.h"

Syntax

class IOnlineSubsystem

Remarks

OnlineSubsystem - Series of interfaces to support communicating with various web/platform layer services

Variables

Name Description

Public variable

FOnConnectionSt...

 

OnConnectionStatusChangedDelegates

Called when the connection state as reported by the online platform changes

Protected variable

FOnlineNotifica...

 

OnlineNotificationHandler

Protected variable

FOnlineNotifica...

 

OnlineNotificationTransportManager

Public variable

FOnOnlineEnviro...

 

OnOnlineEnvironmentChangedDelegates

Delegate fired when the online environment changes

Public variable

FOnPlayTogether...

 

OnPlayTogetherEventReceivedDelegates

Delegate fired when the "Play Together" event is sent from the PS4 system

Constructors

Name Description

Protected function

IOnlineSubsystem()

Hidden on purpose

Destructors

Name Description

Public function Virtual

~IOnlineSubsystem()

Functions

Name Description

Public function Virtual

FDelegateHan...

 

AddOnConnectionStatusChangedDelegate_Handle

(
    const FOnConnectionStatusChangedDel...
)

Public function Virtual

FDelegateHan...

 

AddOnOnlineEnvironmentChangedDelegate_Handle

(
    const FOnOnlineEnvironmentChangedDe...
)

Public function Virtual

FDelegateHan...

 

AddOnPlayTogetherEventReceivedDelegate_Handle

(
    const FOnPlayTogetherEventReceivedD...
)

Public function Virtual

void

 

ClearOnConnectionStatusChangedDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnConnectionStatusChangedDelegates

(
    void* Object
)

Public function Virtual

void

 

ClearOnOnlineEnvironmentChangedDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnOnlineEnvironmentChangedDelegates

(
    void* Object
)

Public function Virtual

void

 

ClearOnPlayTogetherEventReceivedDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnPlayTogetherEventReceivedDelegates

(
    void* Object
)

Public function Static

void

 

Destroy

(
    FName SubsystemName
)

Destroy a single online subsystem instance

Public function Static

bool

 

DoesInstanceExist

(
    const FName& SubsystemName
)

Determine if an instance of the subsystem already exists

Public function

bool

 

Exec

(
    UWorld* InWorld,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Exec handler that allows the online subsystem to process exec commands

Public function Static

IOnlineSubsy...

 

Get

(
    const FName& SubsystemName
)

Get the online subsystem for a given service

Public function Const

IOnlineAchie...

 

GetAchievementsInterface()

Get the interface for accessing online achievements

Public function Const

FString

 

GetAppId()

Each online subsystem has a global id for the app

Public function Static

IOnlineSubsy...

 

GetByConfig

(
    const FString& ConfigString,
    bool bAutoLoad
)

Get the online subsystem associated with the given config string

Public function Static

IOnlineSubsy...

 

GetByPlatform

(
    bool bAutoLoad
)

Get the online subsystem native to the current hardware

Public function Const

IOnlineChatP...

 

GetChatInterface()

Get the interface for user-user and user-room chat functionality

Public function Const

IOnlineEntit...

 

GetEntitlementsInterface()

Get the interface for accessing user entitlements

Public function Const

IOnlineEvent...

 

GetEventsInterface()

Get the interface for accessing online achievements

Public function Const

IOnlineExter...

 

GetExternalUIInterface()

Get the interface for accessing the external UIs of a service

Public function Const

IOnlineFrien...

 

GetFriendsInterface()

Get the interface for accessing the player friends services

Public function Const

IOnlineGameA...

 

GetGameActivityInterface()

Get interface for accessing the game activity

Public function Const

IOnlineGameI...

 

GetGameItemStatsInterface()

Get interface for accessing the game item stats

Public function Const

IOnlineGroup...

 

GetGroupsInterface()

Get the interface for accessing the groups services

Public function Const

IOnlineIdent...

 

GetIdentityInterface()

Get the interface for accessing identity online services

Public function Const

FName

 

GetInstanceName()

Get the instance name, which is typically "default" or "none" but distinguishes one instance from another in "Play In Editor" mode.

Public function Const

IOnlineLeade...

 

GetLeaderboardsInterface()

Get the interface for accessing leaderboards/rankings of a service

Public function Static

FString

 

GetLocalPlatformName()

Get the local online platform based on compile time determination of hardware.

Public function Const

IOnlineMessa...

 

GetMessageInterface()

Get the interface for accessing online messages

Public function Const

IMessageSani...

 

GetMessageSanitizer

(
    int32 LocalUserNum,
    FString& OutAuthTypeToExclude
)

Get the interface for accessing the message sanitizer service

Public function

UObject *...

 

GetNamedInterface

(
    FName InterfaceName
)

Get custom UObject data preserved by the online subsystem

Public function Const

EOnlineEnvir...

 

GetOnlineEnvironment()

Public function Const

FString

 

GetOnlineEnvironmentName()

Public function Const

FOnlineNotif...

 

GetOnlineNotificationHandler()

Get the notification handler instance for this subsystem

Public function Const

FOnlineNotif...

 

GetOnlineNotificationTransportManager()

Get the transport manager instance for this subsystem

Public function Const

FText

 

GetOnlineServiceName()

Public function Const

IOnlineParty...

 

GetPartyInterface()

Get the interface for accessing the player party services

Public function Const

IOnlinePrese...

 

GetPresenceInterface()

Get the interface for managing rich presence information

Public function Const

IOnlinePurch...

 

GetPurchaseInterface()

Get the interface for purchasing

Public function Const

IOnlineSessi...

 

GetSessionInterface()

Get the interface for accessing the session management services

Public function Const

IOnlineShare...

 

GetSharedCloudInterface()

Get the interface for sharing user files in the cloud

Public function Const

IOnlineShari...

 

GetSharingInterface()

Get the interface for accessing online sharing

Public function Const

IOnlineStats...

 

GetStatsInterface()

Get the interface for accessing online stats

Public function Const

IOnlineStore...

 

GetStoreV2Interface()

Get the interface for accessing an online store

Public function Const

FName

 

GetSubsystemName()

Return the name of the subsystem

Public function Const

IOnlineTimeP...

 

GetTimeInterface()

Get the interface for accessing the server time from an online service

Public function Const

IOnlineTitle...

 

GetTitleFileInterface()

Get the interface for accessing title file online services

Public function Const

IOnlineTourn...

 

GetTournamentInterface()

Get the interface for managing tournament information

Public function Const

IOnlineTurnB...

 

GetTurnBasedInterface()

Get the interface for managing turn based multiplayer games

Public function Const

IOnlineUserC...

 

GetUserCloudInterface()

Get the interface for accessing user files in the cloud

Public function Const

IOnlineUserP...

 

GetUserInterface()

Get the interface for accessing online user information

Public function Const

IOnlineVoice...

 

GetVoiceInterface()

Get the interface for accessing voice related data

Public function

bool

 

Init()

Initialize the underlying subsystem APIs

Public function Const

bool

 

IsDedicated()

Is the online subsystem associated with the game/editor/engine running as dedicated.

Public function Const

bool

 

IsEnabled()

Public function Static

bool

 

IsEnabled

(
    const FName& SubsystemName,
    const FName& InstanceName
)

Determine if the subsystem for a given interface is enabled by config and command line

Public function Static

bool

 

IsLoaded

(
    const FName& SubsystemName
)

Determine if the subsystem for a given interface is already loaded

Public function Const

bool

 

IsLocalPlayer

(
    const FUniqueNetId& UniqueId
)

Is a player local to this machine by unique id

Public function Const

bool

 

IsServer()

Is this instance of the game running as a server (dedicated OR listen) checks the Engine if possible for netmode status

Public function

void

 

PreUnload()

Perform any shutdown actions prior to any other modules being unloaded/shutdown

Public function

void

 

ReloadConfigs

(
    const TSet< FString >& ConfigSecti...
)

Reload the configuration if it is relevant for this OSS instance

Public function Static

void

 

ReloadDefaultSubsystem()

Unload the current default subsystem and attempt to reload the configured default subsystem May be different if the fallback subsystem was created an startup

Public function

void

 

SetForceDedicated

(
    bool bForce
)

Force the online subsystem to behave as if it's associated with running a dedicated server

Public function

void

 

SetNamedInterface

(
    FName InterfaceName,
    UObject* NewInterface
)

Set a custom UObject to be preserved by the online subsystem

Public function

void

 

SetUsingMultiplayerFeatures

(
    const FUniqueNetId& UniqueId,
    bool bUsingMP
)

Some platforms must know when the game is using Multiplayer features so they can do recurring authorization checks.

Public function

bool

 

Shutdown()

Shutdown the underlying subsystem APIs

Public function Virtual

void

 

TriggerOnConnectionStatusChangedDelegates

Public function Virtual

void

 

TriggerOnOnlineEnvironmentChangedDelegates

(
    EOnlineEnvironment::Type Param1,
    EOnlineEnvironment::Type Param2
)

Public function Virtual

void

 

TriggerOnPlayTogetherEventReceivedDelegates

(
    int32 Param1,
    TArray< TSharedPtr< const FUniqueNe...
)

Deprecated Functions

Name Description

Public function Virtual Const

IOnlineStore...

 

GetStoreInterface()

Move to OnlineStoreInterfaceV2 and OnlinePurchaseInterface.

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