Skip to main content

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

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

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

Function definition

public static bool ComplianceSetUserProfile(string gameID, string openID, string token, int channelID, string 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
gameIDstringGame ID configuration of iTOP/MSDKV5/Player Network SDK, obtained from the configuration file
openIDstringOpenID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
tokenstringToken for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
channelIDintChannelID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
regionstringISO 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 = INTLAPI.ComplianceSetUserProfile(gameID, openID, token, channelID, region);