Language:
Discover
By Skill Level
By Category

UOnlineSession

Choose your OS:

Inheritance Hierarchy

Syntax

class UOnlineSession : public UObject

Constructors

Name Description

Public function

UOnlineSession

(
    const FObjectInitializer & ObjectIn...
)

============================================================================= OnlineSession.cpp: Online session related implementations (creating/joining/leaving/destroying sessions)

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

 

OnPlayTogetherEventReceived

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

Called when the play together system event is received on PS4

Public function Virtual

void

 

OnSessionUserInviteAccepted

(
    const bool bWasSuccess,
    const int32 ControllerId,
    TSharedPtr < const FUniqueNetId > Us...,
    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

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/OnlineSession.h