Skip to main content

Set User Properties (ComplianceInitWithParams)

AndroidiOSWindows
If you're using Unreal Engine, see ComplianceInitWithParams for Unreal Engine SDK.

Set user login status and configuration information.

Function Definition

public static bool ComplianceInitWithParams(string gameID, string openID, string token, int channelID, string langType, string extraJson)

Input Parameters

NameTypeExplanation
gameIDStringGame ID in the configuration file
openIDStringOpenID, obtained from AuthResult
tokenStringToken, obtained from AuthResult
channelIDintChannelID, obtained from AuthResult
langTypeStringThe language for sending emails and SMS
Type follows RFC 4646, for example, en represents English. See Language Type Definition
extraJsonStringIncludes compliance status for minor verification status

Return Value

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

Code example

string gameID = "11";
string openID = "123456789";
string token = "qwer123rtyyt597";
int channelID = 0;
string langType = "en";
string extraJson = AuthResult.ExtraJson["get_status_rsp"];

bool succ = INTLAPI.ComplianceInitWithParams(gameID, openID, token, channelID, langType, extraJson);