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
| Name | Type | Explanation |
|---|---|---|
| gameID | string | Game ID in the configuration file |
| openID | string | OpenID, obtained from AuthResult |
| token | string | Token, obtained from AuthResult |
| channelID | int | ChannelID, obtained from AuthResult |
| langType | string | The language for sending emails and SMS Type follows RFC 4646, for example, en represents English. See Language Type Definition |
| extraJson | string | Includes compliance status for minor verification status |
| is_NoPB | bool | For 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
trueif the user profile configuration is valid - Returns
falseif 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);