LootLocker Unity SDK 8.1.1
Game backend SDK for Unity
Loading...
Searching...
No Matches
Miscellaneous Utilities

Detailed Description

Helpers that don't fit neatly into a feature group.

Function Documentation

◆ 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
onCompleteonComplete Action for handling the response of type LootLockerConnectionStateResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetGameInfo()

static void LootLocker.Requests.LootLockerSDKManager.GetGameInfo ( Action< LootLockerGameInfoResponse onComplete)
inlinestatic

Get meta information about the game.

Parameters
onCompleteonComplete 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
forPlayerWithUlidOptional : 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
onCompleteonComplete Action for handling the response of type LootLockerPingResponse
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.Ping (Action< LootLockerPingResponse > onComplete, string forPlayerWithUlid=null)
 Ping the server, contains information about the current time of the server.
 
static void LootLocker.Requests.LootLockerSDKManager.CheckConnectionStatus (Action< LootLockerConnectionStateResponse > onComplete, string forPlayerWithUlid=null)
 Check the current connection and session state for a player.
 
static void LootLocker.Requests.LootLockerSDKManager.GetGameInfo (Action< LootLockerGameInfoResponse > onComplete)
 Get meta information about the game.
 
static LL_AuthPlatforms LootLocker.Requests.LootLockerSDKManager.GetLastActivePlatform (string forPlayerWithUlid=null)
 Get the Platform the user last used.