跳到主要内容

Client TitleConfigData API Reference

Title Config Data is a set of key-value pairs for the whole title. It is commonly used to store configuration data that is applicable across the title-wide, such as title region info list, game client version control data, and so on.

API List

APIDescription
GetTitleConfigKVDataQuery the specified key-value data of the title config data.
GetAllTitleConfigKVDataQuery all key-value data of the title config data.

API Details

GetTitleConfigKVData

Query the specified key-value data of the title config data.

/**
* Query the specified key-value data of the title config data.
*
* @param query_keys Keys to query
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetTitleConfigKVData(
const pgos::pvector<pgos::pstring>& query_keys,
PgosDataCallback<TitleConfigKVDataQueryResult> result_callback);

Parameters:

ParamTypeDescription
query_keysconst std::vector<std::string>&Keys to query
result_callbackPgosDataCallback<TitleConfigKVDataQueryResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void

GetAllTitleConfigKVData

Query all key-value data of the title config data.

/**
* Query all key-value data of the title config data.
*
* @param result_callback The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.
*/
void GetAllTitleConfigKVData(
PgosDataCallback<TitleConfigKVDataQueryResult> result_callback);

Parameters:

ParamTypeDescription
result_callbackPgosDataCallback<TitleConfigKVDataQueryResult>The result callback after the API execution ends, and it will be called in an ASYNCHRONOUS CHILD THREAD.

Return: void