UOnlineSession

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/OnlineSession.h

Include

#include "GameFramework/OnlineSession.h"

Syntax

class UOnlineSession : public UObject

Constructors

Name Description

Public function

UOnlineSession

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Virtual

void

 

ClearOnlineDelegates()

Tear down all delegates used to manage online sessions.

Public function Virtual

void

 

EndOnlineSession

(
    FName SessionName
)

End the online session specified

Public function Virtual

void

 

HandleDisconnect

(
    UWorld* World,
    UNetDriver* NetDriver
)

Called to tear down any online sessions and return to main menu

Public function Virtual

void

 

OnSessionUserInviteAccepted

(
    const bool bWasSuccess,
    const int32 ControllerId,
    FUniqueNetIdPtr UserId,
    const FOnlineSessionSearchResult& ...
)

Called when a user accepts an invite

Public function Virtual

void

 

RegisterOnlineDelegates()

Register all delegates needed to manage online sessions.

Public function Virtual

void

 

StartOnlineSession

(
    FName SessionName
)

Start the online session specified