Skip to main content

ComplianceSetUserProfile (Deprecated since V1.16, use ComplianceInitWithParams instead)

AndroidiOSWindows
If you were looking for the method for use with Unity, see ComplianceSetUserProfile for Unity SDK.

Set user login state and configuration information, supports iTOP/MSDKV5/Player Network SDK accounts.

Function definition

UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ComplianceSetUserProfile(
const FString GameId,
const FString OpenId,
const FString Token,
const int32 ChannelId,
const FString region);

Input parameters

caution

The country or region code of a user must strictly follow the ISO 3166-1 standard. For example, write 004 instead of 4 for Afghanistan.

NameTypeDescription
GameIdFStringGame ID configuration of iTOP/MSDKV5/Player Network SDK, obtained from the configuration file
OpenIdFStringOpenID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
TokenFStringToken for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
ChannelIdint32ChannelID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
RegionFStringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria

Return value

  • Returns true if user profile is valid
  • Returns false if user profile is invalid

Code sample

bool succ = UINTLSDKAPI::ComplianceSetUserProfile(gameID, openID, token, channelID, region);