Helpers that don't fit neatly into a feature group.
◆ FGameInfoResponseDelegate
C++ response delegate for fetching game info.
◆ FLootLockerConnectionStateDelegate
C++ response delegate for CheckConnectionStatus.
◆ FTimeResponseDelegate
C++ response delegate for fetching server time.
◆ CheckConnectionStatus()
Check the current connection and session state for a player.
Performs fast local checks first, then a lightweight ping to the LootLocker servers. Returns one of the following states:
- NotInitialized — the SDK has not been configured (game API key is not set).
- NotSignedIn — no saved credentials exist for the specified player.
- SavedButInactive — the player has saved credentials but is not currently active in the multi-player session. Call SetPlayerUlidToActive or start a new session first.
- NoConnection — the server could not be reached (no network, timeout, or status 0).
- SignedInAndConnected — the session is valid and the server is reachable.
- SessionExpired — a session exists but the token is no longer valid (401 or non-ban 403).
- Banned — the player is currently banned; BanDetails is populated.
- ServerError — the server returned a 5xx or other unexpected error.
Note: if automatic token refresh is enabled in the SDK config (AllowTokenRefresh), the underlying HTTP client may attempt a refresh when the ping returns 401 or 403. This method reports the resulting state after any such automatic behavior — it does not explicitly request a refresh.
- Parameters
-
| OnCompletedRequest | Delegate called when the check is complete |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetGameInfo()
Get game meta information.
- Parameters
-
| OnComplete | Delegate for handling the server response |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetLastActivePlatform()
| static FString ULootLockerSDKManager::GetLastActivePlatform |
( |
const FString & |
ForPlayerWithUlid = "" | ) |
|
|
static |
Get the last active platform from a previous session.
- Parameters
-
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- Last active platform identifier (empty if none recorded)
-
A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound
◆ GetServerTime()
| static FString ULootLockerSDKManager::GetServerTime |
( |
const FTimeResponseDelegate & |
OnCompletedRequest, |
|
|
const FString & |
ForPlayerWithUlid = "" |
|
) |
| |
|
static |
Get current server time (ping).
- Parameters
-
| OnCompletedRequest | Delegate for handling the server response |
| ForPlayerWithUlid | Optional: Execute for the specified player ULID (default player if empty) |
- Returns
- A unique id for this request, use this to match callbacks to requests when you have multiple simultaneous requests outbound