Navigation
API > API/Plugins > API/Plugins/OnlineSubsystemUtils
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UOnlineSession
- UOnlineSessionClient
References
| Module | OnlineSubsystemUtils |
| Header | /Engine/Plugins/Online/OnlineSubsystemUtils/Source/OnlineSubsystemUtils/Classes/OnlineSessionClient.h |
| Include | #include "OnlineSessionClient.h" |
Syntax
UCLASS&40;Config&61;Game&41;
class UOnlineSessionClient : public UOnlineSession
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bHandlingDisconnect | Have we started returning to main menu already | |
| bool | bIsFromInvite | Is this join from an invite | |
| FOnlineSessionSearchResult | CachedSessionResult | Cached invite/search result while in the process of tearing down an existing session | |
| FDelegateHandle | EndSessionCompleteHandle | Handle to outstanding end session call | |
| FOnDestroySessionCompleteDelegate | OnDestroyForJoinSessionCompleteDelegate | Delegate for joining a new session after previously destroying it | |
| FDelegateHandle | OnDestroyForJoinSessionCompleteDelegateHandle | ||
| FOnDestroySessionCompleteDelegate | OnDestroyForMainMenuCompleteDelegate | Delegate for returning to main menu after cleaning up | |
| FDelegateHandle | OnDestroyForMainMenuCompleteDelegateHandle | ||
| FOnEndSessionCompleteDelegate | OnEndForJoinSessionCompleteDelegate | Delegate for destroying a session after previously ending it | |
| FDelegateHandle | OnEndForJoinSessionCompleteDelegateHandle | ||
| FOnJoinSessionCompleteDelegate | OnJoinSessionCompleteDelegate | Delegate after joining a session | |
| FDelegateHandle | OnJoinSessionCompleteDelegateHandle | ||
| FDelegateHandle | OnSessionInviteAcceptedDelegateHandle | Handles to the above delegates. | |
| FOnSessionUserInviteAcceptedDelegate | OnSessionUserInviteAcceptedDelegate | Delegate for accepting session invites | |
| FDelegateHandle | OnSessionUserInviteAcceptedDelegateHandle | Delegate handle that stores delegate for when an invite is accepted by a user | |
| FDelegateHandle | StartSessionCompleteHandle | Handle to outstanding start session call |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UOnlineSessionClient
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DestroyExistingSession
(
FName SessionName, |
Destroys an existing session of a given name | |
| void | DestroyExistingSession_Impl
(
FDelegateHandle& OutResult, |
Implementation of DestroyExistingSession | |
| void | EndExistingSession
(
FName SessionName, |
Ends an existing session of a given name | |
| UGameInstance * | |||
| IOnlineSessionPtr | |||
| UWorld * | GetWorld () |
||
| bool | HandleDisconnectInternal
(
UWorld* World, |
Chance for the session client to handle the disconnect | |
| void | JoinSession
(
FName SessionName, |
Join a session of a given name after potentially tearing down an existing one | |
| void | OnDestroyForJoinSessionComplete
(
FName SessionName, |
Transition from destroying a session to joining a new one of the same name | |
| void | OnDestroyForMainMenuComplete
(
FName SessionName, |
Transition from destroying a session to returning to the main menu | |
| void | OnEndForJoinSessionComplete
(
FName SessionName, |
Transition from ending a session to destroying a session | |
| void | OnEndSessionComplete
(
FName InSessionName, |
Delegate called when EndSession has completed | |
| void | OnJoinSessionComplete
(
FName SessionName, |
Delegate fired when the joining process for an online session has completed | |
| void | OnStartSessionComplete
(
FName InSessionName, |
Delegate called when StartSession has completed | |
| void | SetInviteFlags
(
UWorld* World, |
Update the session settings on the client |
Overridden from UOnlineSession
| Type | Name | Description | |
|---|---|---|---|
| void | Tear down all delegates used to manage online sessions. | ||
| void | EndOnlineSession
(
FName SessionName |
End the online session specified | |
| void | HandleDisconnect
(
UWorld* World, |
Called to tear down any online sessions and return to main menu | |
| void | OnSessionUserInviteAccepted
(
const bool bWasSuccess, |
Called from GameInstance when the user accepts an invite | |
| void | Register all delegates needed to manage online sessions. | ||
| void | StartOnlineSession
(
FName SessionName |
Start the online session specified |