Skip to main content

Set User Properties (ComplianceInitWithParams)

AndroidiOSPC

If you are using Unreal Engine, please refer to ComplianceInitWithParams in the 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, bool is_NoPB)

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
is_NoPBboolFor businesses that are not published by Proxima Beta and do not use IEG Compliance Services, set is_NoPB to true. See Compliance

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 is_NoPB = false;

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