Skip to main content

Set User Properties (ComplianceInitWithParams)

AndroidiOSWindows
If you're using the Unity engine, see ComplianceInitWithParams for Unity SDK.

Set user login status 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,
const bool is_NoPB);

Input Parameters

NameTypeExplanation
GameIdFStringGame ID in the configuration file
OpenIdFStringOpenID, obtained from AuthResult
TokenFStringToken, obtained from AuthResult
ChannelIdint32ChannelID, obtained from AuthResult
LangTypeFStringLanguage for sending emails and SMS
Type follows RFC 4646, for example, en stands for English. For more details, see Language Type Definition
ExtraJsonFStringIncludes compliance status with minor certification 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 for details.

Return Value

  • Returns true if the user profile configuration is valid
  • Returns false if the user profile configuration is invalid

Code example

FString gameID = "11";
FString openID = "123456789";
FString token = "qwer123rtyyt597";
int32 channelID = 0;
FString langType = "en";
FString extraJson = AuthResult.ExtraJson["get_status_rsp"];
bool is_NoPB = false

bool succ = UINTLSDKAPI::ComplianceInitWithParams(GameId, OpenId, Token, ChannelId, LangType, is_NoPB);