Skip to main content

ComplianceInitWithParams

AndroidiOSWindows
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

NameTypeDescription
GameIdFStringGame ID in the configuration file
OpenIdFStringOpenID obtained from AuthResult
TokenFStringToken obtained from AuthResult
ChannelIdint32ChannelID obtained from AuthResult
LangTypeFStringLanguage used when sending emails and text messages
Follows RFC 4646 format, such as en for English, see Language Type Definition for details
ExtraJsonFStringCompliance 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);