IOnlineTime

Interface for querying server time from an online service

Choose your operating system:

Windows

macOS

Linux

References

Module

OnlineSubsystem

Header

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

Include

#include "Interfaces/OnlineTimeInterface.h"

Syntax

class IOnlineTime

Remarks

Interface for querying server time from an online service

Variables

Name Description

Public variable

FOnQueryServerU...

 

OnQueryServerUtcTimeCompleteDelegates

Called when the time request from the server is complete

Constructors

Name Description

Protected function

IOnlineTime()

Destructors

Name Description

Public function Virtual

~IOnlineTime()

Functions

Name Description

Public function Virtual

FDelegateHan...

 

AddOnQueryServerUtcTimeCompleteDelegate_Handle

(
    const FOnQueryServerUtcTimeComplete...
)

Public function Virtual

void

 

ClearOnQueryServerUtcTimeCompleteDelegate_Handle

(
    FDelegateHandle& Handle
)

Public function Virtual

void

 

ClearOnQueryServerUtcTimeCompleteDelegates

(
    void* Object
)

Public function

FString

 

GetLastServerUtcTime()

Retrieve cached timestamp from last server time query

Public function

bool

 

QueryServerUtcTime()

Send request for current UTC time from the server

Public function Virtual

void

 

TriggerOnQueryServerUtcTimeCompleteDelegates

(
    bool Param1,
    const FString& Param2,
    const FString& Param3
)