ComplianceInitWithParams
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ComplianceInitWithParams for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see ComplianceInitWithParams for Unreal Engine SDK.
Set user login state and configuration information.
Function definition
public static bool ComplianceInitWithParams(string gameID, string openID, string token, int channelID, string langType, string extraJson)
Input parameters
Name | Type | Description |
---|---|---|
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 | Language used when sending emails and text messages Follows RFC 4646 format, such as en for English, see Language Type Definition for details |
extraJson | string | Compliance result containing minor authentication status, obtained from AuthResult as JSON string get_status_rsp |
Return value
- Returns
true
if user profile is valid - Returns
false
if user profile is invalid
Code sample
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);