Loading...
Searching...
No Matches
FOnlineSubsystemAccelByteUtils Class Reference

Static Public Member Functions

static FUniqueNetIdRef GetUniqueIdFromString (FString UniqueIdString, bool bIsEncoded=true)
static FUniqueNetIdPtr GetPlatformUniqueIdFromUniqueId (const FUniqueNetId &UniqueId)
static bool IsPlayerOnSamePlatform (const FUniqueNetId &UniqueId)
static bool IsPlayerOnSamePlatform (FString UniqueIdString)
static FString GetAccelByteIdFromUniqueId (const FUniqueNetId &UniqueId)
static FString GetPlatformNameFromUniqueId (const FUniqueNetId &UniqueId)
static FString GetPlatformIdStringFromUniqueId (const FUniqueNetId &UniqueId)
static FString GetPlatformName ()
static bool GetDisplayName (int32 LocalUserNum, FString UniqueId, FOnGetDisplayNameComplete Delegate, FString DisplayName=TEXT(""))
static bool GetDisplayName (int32 LocalUserNum, FUniqueNetIdPtr UniqueId, FOnGetDisplayNameComplete Delegate, FString DisplayName=TEXT(""))
static FUniqueNetIdPtr GetPlatformUniqueIdFromPlatformUserId (const FString &PlatformUserId)
static FUniqueNetIdRef GetAccelByteUserIdFromUniqueId (const FUniqueNetId &UniqueId)
static EAccelByteLoginType GetAccelByteLoginTypeFromNativeSubsystem (const FName &SubsystemName)
static EAccelByteLoginType GetAccelByteLoginTypeFromPlatformType (EAccelBytePlatformType PlatformType)
static EAccelBytePlatformType GetAccelBytePlatformTypeFromAuthType (const FString &InAuthType)
static void AddUserPlatform (const FString &UserId, const FString PlatformName)
static FString GetUserPlatform (const FString &UserId)
static void AddUserJoinTime (const FString &UserId, const FString Value)
static FString GetUserJoinTime (const FString &UserId)
static void AddUserDisconnectedTime (const FString &UserId, const FString Value)
static FString GetUserDisconnectedTime (const FString &UserId)
static FString GetLocalTimeOffsetFromUTC ()
static FString GetStringFromStringTable (const FString &StringTable, const int32 Key)
static EAccelBytePlatformType GetCurrentAccelBytePlatformType (const FName &NativeSubsystemName)
static bool IsValidLocalUserNum (const int32 &InLocalUserNum)

Member Function Documentation

◆ GetAccelByteLoginTypeFromNativeSubsystem()

EAccelByteLoginType FOnlineSubsystemAccelByteUtils::GetAccelByteLoginTypeFromNativeSubsystem ( const FName & SubsystemName)
static

Convert a native subsystem name to a login type enum value. Used to determine which path the token from the native OSS should take on the backend to properly authenticate.

◆ GetAccelByteLoginTypeFromPlatformType()

EAccelByteLoginType FOnlineSubsystemAccelByteUtils::GetAccelByteLoginTypeFromPlatformType ( EAccelBytePlatformType PlatformType)
static

Convert a native platform type enum to a login type enum value. Used to determine which path the token from the native OSS should take on the backend to properly authenticate.

◆ GetAccelBytePlatformTypeFromAuthType()

EAccelBytePlatformType FOnlineSubsystemAccelByteUtils::GetAccelBytePlatformTypeFromAuthType ( const FString & InAuthType)
static

Convert a native subsystem name to a login type enum value. Used to determine which path the token from the native OSS should take on the backend to properly authenticate.

◆ GetAccelByteUserIdFromUniqueId()

FUniqueNetIdRef FOnlineSubsystemAccelByteUtils::GetAccelByteUserIdFromUniqueId ( const FUniqueNetId & UniqueId)
static

Return AccelByte userId, decode if it's composite userId

◆ GetDisplayName() [1/2]

bool FOnlineSubsystemAccelByteUtils::GetDisplayName ( int32 LocalUserNum,
FString UniqueId,
FOnGetDisplayNameComplete Delegate,
FString DisplayName = TEXT("") )
static

Convenience method to get display name for either a remote or local user.

◆ GetDisplayName() [2/2]

bool FOnlineSubsystemAccelByteUtils::GetDisplayName ( int32 LocalUserNum,
FUniqueNetIdPtr UniqueId,
FOnGetDisplayNameComplete Delegate,
FString DisplayName = TEXT("") )
static

Convenience method to get display name for either a remote or local user.

◆ GetLocalTimeOffsetFromUTC()

FString FOnlineSubsystemAccelByteUtils::GetLocalTimeOffsetFromUTC ( )
static

Method to calculate a local offset timestamp from UTC

◆ GetPlatformUniqueIdFromPlatformUserId()

FUniqueNetIdPtr FOnlineSubsystemAccelByteUtils::GetPlatformUniqueIdFromPlatformUserId ( const FString & PlatformUserId)
static

Convert Platform User Id string into UniqueNetId

◆ GetPlatformUniqueIdFromUniqueId()

FUniqueNetIdPtr FOnlineSubsystemAccelByteUtils::GetPlatformUniqueIdFromUniqueId ( const FUniqueNetId & UniqueId)
static

Gets UniqueId for the specific platform (used to properly call platform functions)

◆ GetStringFromStringTable()

FString FOnlineSubsystemAccelByteUtils::GetStringFromStringTable ( const FString & StringTable,
const int32 Key )
static

Query string table using int32 as the Key and FString as the result value

Parameters
Keythe Key to search on the String Table

◆ IsValidLocalUserNum()

bool FOnlineSubsystemAccelByteUtils::IsValidLocalUserNum ( const int32 & InLocalUserNum)
static

Check if the local user num is in valid range of maximum local user.

Returns
True if the local user num is in the range of maximum local user for current platform.