Helpers that don't fit neatly into a feature group.
◆ CheckConnectionStatus()
| static void LootLocker.Requests.LootLockerSDKManager.CheckConnectionStatus |
( |
Action< LootLockerConnectionStateResponse > |
onComplete, |
|
|
string |
forPlayerWithUlid = null |
|
) |
| |
|
inlinestatic |
Check the current connection and session state for a player.
Performs a lightweight ping to the LootLocker servers and returns one of the following states:
-
LootLockerConnectionState.NotInitialized – the SDK has not been initialized.
-
LootLockerConnectionState.NotSignedIn – no session exists for the player.
-
LootLockerConnectionState.SavedButInactive – the player has saved credentials but is not currently active in the multi-player session. Call the appropriate session start method or MakePlayerActive to activate them first.
-
LootLockerConnectionState.NoConnection – the device has no internet or the server did not respond.
-
LootLockerConnectionState.SignedInAndConnected – the session is valid and the server is reachable.
-
LootLockerConnectionState.SessionExpired – a session exists but the token has expired (401) or another non-ban 403 was returned.
-
LootLockerConnectionState.Banned – the player is currently banned. LootLockerConnectionStateResponse.BanDetails is populated.
-
LootLockerConnectionState.ServerError – the server returned a 5xx error.
Note: If LootLockerConfig.allowTokenRefresh is enabled, the underlying HTTP client may automatically attempt a session refresh when the ping returns 401 or 403. This method does not explicitly request a refresh; it reports the resulting state after any such automatic refresh behavior.
- Parameters
-
| onComplete | onComplete Action for handling the response of type LootLockerConnectionStateResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
◆ GetGameInfo()
Get meta information about the game.
- Parameters
-
| onComplete | onComplete Action for handling the response |
◆ GetLastActivePlatform()
| static LL_AuthPlatforms LootLocker.Requests.LootLockerSDKManager.GetLastActivePlatform |
( |
string |
forPlayerWithUlid = null | ) |
|
|
inlinestatic |
Get the Platform the user last used.
This can be used to know what login method to prompt.
- Parameters
-
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |
- Returns
- The platform that was last used by the user
◆ Ping()
| static void LootLocker.Requests.LootLockerSDKManager.Ping |
( |
Action< LootLockerPingResponse > |
onComplete, |
|
|
string |
forPlayerWithUlid = null |
|
) |
| |
|
inlinestatic |
Ping the server, contains information about the current time of the server.
- Parameters
-
| onComplete | onComplete Action for handling the response of type LootLockerPingResponse |
| forPlayerWithUlid | Optional : Execute the request for the specified player. If not supplied, the default player will be used. |