ComplianceInitWithParams
AndroidiOSWindows
If you were looking for the method for use with Unity, see ComplianceInitWithParams for Unity SDK.
If you were looking for the method for use with Unity, see ComplianceInitWithParams for Unity SDK.
Set user login state and configuration information.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ComplianceInitWithParams(
const FString GameId,
const FString OpenId,
const FString Token,
const int32 ChannelId,
const FString LangType,
const FString ExtraJson);
Input parameters
Name | Type | Description |
---|---|---|
GameId | FString | Game ID in the configuration file |
OpenId | FString | OpenID obtained from AuthResult |
Token | FString | Token obtained from AuthResult |
ChannelId | int32 | ChannelID obtained from AuthResult |
LangType | FString | Language used when sending emails and text messages Follows RFC 4646 format, such as en for English, see Language Type Definition for details |
ExtraJson | FString | 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
FString gameID = "11";
FString openID = "123456789";
FString token = "qwer123rtyyt597";
int32 channelID = 0;
FString langType = "en";
FString extraJson = AuthResult.ExtraJson["get_status_rsp"];
bool succ = UINTLSDKAPI::ComplianceInitWithParams(GameId, OpenId, Token, ChannelId,LangType);