LootLocker Unreal SDK 10.4.0
Game backend SDK for Unreal Engine
Loading...
Searching...
No Matches
Player Files

Detailed Description

CDN-backed file storage scoped to a player's profile.

Best suited for large files such as screenshots, cloud saves, or profile pictures that benefit from CDN delivery. For small key-value data prefer Metadata. Each file upload requires a declared purpose; files can be marked private to restrict visibility. Up to five revisions per file are retained, with revert capability in the Web Console.

See the LootLocker documentation.

Typedef Documentation

◆ FLootLockerFileDeletedDelegate

typedef void(* FLootLockerFileDeletedDelegate) (FLootLockerResponse)

C++ response callback delegate; receives an FLootLockerResponse result.

◆ FLootLockerFileListDelegate

typedef void(* FLootLockerFileListDelegate) (FLootLockerFileListResponse)

C++ response callback delegate; receives an FLootLockerFileListResponse result.

◆ FLootLockerUploadFileDelegate

typedef void(* FLootLockerUploadFileDelegate) (FLootLockerPlayerFileResponse)

C++ response callback delegate; receives an FLootLockerPlayerFileResponse result.

Function Documentation

◆ DeletePlayerFile()

static FString ULootLockerSDKManager::DeletePlayerFile ( const int32  FileID,
const FLootLockerFileDeletedDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

Permanently delete a player-owned file (irreversible).

Parameters
FileIDFile id to delete (from upload response or ListFiles)
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

◆ GetSingleFile()

static FString ULootLockerSDKManager::GetSingleFile ( const int32  FileID,
const FLootLockerUploadFileDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

Retrieve metadata (including access URL) for a single file.

Parameters
FileIDFile id (retrieved from upload response or ListFiles)
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

◆ ListFiles()

static FString ULootLockerSDKManager::ListFiles ( const FLootLockerFileListDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

List all files owned by the player.

Parameters
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

◆ ListOtherPlayersPublicFiles()

static FString ULootLockerSDKManager::ListOtherPlayersPublicFiles ( const int32  PlayerID,
const FLootLockerFileListDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

List all public files owned by another player (by legacy PlayerID).

Parameters
PlayerIDLegacy player id of the target player
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

◆ UpdateFile()

static FString ULootLockerSDKManager::UpdateFile ( const int32  FileId,
const FLootLockerFileUpdateRequest Request,
const FLootLockerUploadFileDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

Update an existing player-owned file with new content or metadata.

Parameters
FileIdFile id (retrieved from upload response or ListFiles)
RequestFile update request payload
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

◆ UploadFile()

static FString ULootLockerSDKManager::UploadFile ( const FLootLockerFileUploadRequest Request,
const FLootLockerUploadFileDelegate OnComplete,
const FString &  ForPlayerWithUlid = "" 
)
static

Upload a file owned by the player (initial creation).

Use UpdateFile to modify existing files.

Parameters
RequestFile upload request payload
OnCompleteDelegate for handling the server response
ForPlayerWithUlidOptional: 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

Typedefs

typedef void(* FLootLockerUploadFileDelegate) (FLootLockerPlayerFileResponse)
 C++ response callback delegate; receives an FLootLockerPlayerFileResponse result.
 
typedef void(* FLootLockerFileListDelegate) (FLootLockerFileListResponse)
 C++ response callback delegate; receives an FLootLockerFileListResponse result.
 
typedef void(* FLootLockerFileDeletedDelegate) (FLootLockerResponse)
 C++ response callback delegate; receives an FLootLockerResponse result.
 

Functions

static FString ULootLockerSDKManager::UploadFile (const FLootLockerFileUploadRequest &Request, const FLootLockerUploadFileDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 Upload a file owned by the player (initial creation).
 
static FString ULootLockerSDKManager::UpdateFile (const int32 FileId, const FLootLockerFileUpdateRequest &Request, const FLootLockerUploadFileDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 Update an existing player-owned file with new content or metadata.
 
static FString ULootLockerSDKManager::ListFiles (const FLootLockerFileListDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 List all files owned by the player.
 
static FString ULootLockerSDKManager::ListOtherPlayersPublicFiles (const int32 PlayerID, const FLootLockerFileListDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 List all public files owned by another player (by legacy PlayerID).
 
static FString ULootLockerSDKManager::GetSingleFile (const int32 FileID, const FLootLockerUploadFileDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 Retrieve metadata (including access URL) for a single file.
 
static FString ULootLockerSDKManager::DeletePlayerFile (const int32 FileID, const FLootLockerFileDeletedDelegate &OnComplete, const FString &ForPlayerWithUlid="")
 Permanently delete a player-owned file (irreversible).