LootLocker Unity SDK 8.0.0
Game backend SDK for Unity
Loading...
Searching...
No Matches
Metadata

Detailed Description

Attach and retrieve typed key-value metadata on any LootLocker entity.

Metadata can be attached to Progressions, Leaderboards, Catalogs, Currencies, Assets, and more. Values are strongly typed: String, Boolean, Number, JSON, or Base64-encoded binary. Entries support optional Tags for filtering (e.g., seasonal, featured) and a Game Read flag that restricts visibility to the Server API only — useful for keeping sensitive data out of the game client.

See the LootLocker documentation.

Function Documentation

◆ GetMetadata()

static void LootLocker.Requests.LootLockerSDKManager.GetMetadata ( LootLockerMetadataSources  Source,
string  SourceID,
string  Key,
Action< LootLockerGetMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

Get Metadata for the specified source with the given key.

Parameters
SourceThe source type for which to request metadata
SourceIDThe specific source id for which to request metadata, note that if the source is self then this too should be set to "self"
KeyThe key of the metadata to fetch, use this to fetch metadata for a specific key for the specified source.
onCompleteDelegate for handling the server response
IgnoreFilesOptional: Base64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ GetMultisourceMetadata()

static void LootLocker.Requests.LootLockerSDKManager.GetMultisourceMetadata ( LootLockerMetadataSourceAndKeys[]  SourcesAndKeysToGet,
Action< LootLockerGetMultisourceMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

List the requested page of Metadata for the specified source that has all of the provided tags and paginate according to the supplied pagination settings.

Parameters
SourcesAndKeysToGetThe combination of sources to get keys for, and the keys to get for those sources
onCompleteDelegate for handling the server response
IgnoreFilesOptional: Base64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListMetadata() [1/2]

static void LootLocker.Requests.LootLockerSDKManager.ListMetadata ( LootLockerMetadataSources  Source,
string  SourceID,
Action< LootLockerListMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

List Metadata for the specified source with default pagination.

Parameters
SourceThe source type for which to request metadata
SourceIDThe specific source id for which to request metadata
onCompleteDelegate for handling the server response
IgnoreFilesBase64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListMetadata() [2/2]

static void LootLocker.Requests.LootLockerSDKManager.ListMetadata ( LootLockerMetadataSources  Source,
string  SourceID,
int  Page,
int  PerPage,
Action< LootLockerListMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

List the requested page of Metadata for the specified source with the specified pagination.

Parameters
SourceThe source type for which to request metadata
SourceIDThe specific source id for which to request metadata
PageUsed together with PerPage to apply pagination to this request. Page designates which "page" of items to fetch
PerPageUsed together with Page to apply pagination to this request.PerPage designates how many items are considered a "page"
onCompleteDelegate for handling the server response
IgnoreFilesBase64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListMetadataWithTags() [1/2]

static void LootLocker.Requests.LootLockerSDKManager.ListMetadataWithTags ( LootLockerMetadataSources  Source,
string  SourceID,
string[]  Tags,
Action< LootLockerListMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

List Metadata for the specified source that has all of the provided tags, use default pagination.

Parameters
SourceThe source type for which to request metadata
SourceIDThe specific source id for which to request metadata
TagsThe tags that the requested metadata should have, only metadata matching all of the given tags will be returned
onCompleteDelegate for handling the server response
IgnoreFilesBase64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ ListMetadataWithTags() [2/2]

static void LootLocker.Requests.LootLockerSDKManager.ListMetadataWithTags ( LootLockerMetadataSources  Source,
string  SourceID,
string[]  Tags,
int  Page,
int  PerPage,
Action< LootLockerListMetadataResponse onComplete,
bool  IgnoreFiles = false,
string  forPlayerWithUlid = null 
)
inlinestatic

List the requested page of Metadata for the specified source that has all of the provided tags and paginate according to the supplied pagination settings.

Parameters
SourceThe source type for which to request metadata
SourceIDThe specific source id for which to request metadata
TagsThe tags that the requested metadata should have, only metadata matching all of the given tags will be returned
PageUsed together with PerPage to apply pagination to this request.Page designates which "page" of items to fetch
PerPageUsed together with Page to apply pagination to this request.PerPage designates how many items are considered a "page"
onCompleteDelegate for handling the server response
IgnoreFilesBase64 values will be set to content_type "application/x-redacted" and the content will be an empty String. Use this to avoid accidentally fetching large data files.
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

◆ PerformMetadataOperations()

static void LootLocker.Requests.LootLockerSDKManager.PerformMetadataOperations ( LootLockerMetadataSources  Source,
string  SourceID,
List< LootLockerMetadataOperation OperationsToPerform,
Action< LootLockerMetadataOperationsResponse onComplete,
string  forPlayerWithUlid = null 
)
inlinestatic

Perform the specified metadata operations for the specified source Note that a subset of the specified operations can fail without the full request failing.

Make sure to check the errors array in the response.

Parameters
SourceThe source type that the source id refers to
SourceIDThe specific source id for which to set metadata, note that if the source is self then this too should be set to "self"
OperationsToPerformList of operations to perform for the given source
onCompleteDelegate for handling the server response
forPlayerWithUlidOptional : Execute the request for the specified player. If not supplied, the default player will be used.

Functions

static void LootLocker.Requests.LootLockerSDKManager.ListMetadata (LootLockerMetadataSources Source, string SourceID, Action< LootLockerListMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 List Metadata for the specified source with default pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListMetadata (LootLockerMetadataSources Source, string SourceID, int Page, int PerPage, Action< LootLockerListMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 List the requested page of Metadata for the specified source with the specified pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListMetadataWithTags (LootLockerMetadataSources Source, string SourceID, string[] Tags, Action< LootLockerListMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 List Metadata for the specified source that has all of the provided tags, use default pagination.
 
static void LootLocker.Requests.LootLockerSDKManager.ListMetadataWithTags (LootLockerMetadataSources Source, string SourceID, string[] Tags, int Page, int PerPage, Action< LootLockerListMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 List the requested page of Metadata for the specified source that has all of the provided tags and paginate according to the supplied pagination settings.
 
static void LootLocker.Requests.LootLockerSDKManager.GetMetadata (LootLockerMetadataSources Source, string SourceID, string Key, Action< LootLockerGetMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 Get Metadata for the specified source with the given key.
 
static void LootLocker.Requests.LootLockerSDKManager.GetMultisourceMetadata (LootLockerMetadataSourceAndKeys[] SourcesAndKeysToGet, Action< LootLockerGetMultisourceMetadataResponse > onComplete, bool IgnoreFiles=false, string forPlayerWithUlid=null)
 List the requested page of Metadata for the specified source that has all of the provided tags and paginate according to the supplied pagination settings.
 
static void LootLocker.Requests.LootLockerSDKManager.PerformMetadataOperations (LootLockerMetadataSources Source, string SourceID, List< LootLockerMetadataOperation > OperationsToPerform, Action< LootLockerMetadataOperationsResponse > onComplete, string forPlayerWithUlid=null)
 Perform the specified metadata operations for the specified source Note that a subset of the specified operations can fail without the full request failing.