Set User Properties (ComplianceInitWithParams)
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);
Input Parameters
| Name | Type | Explanation |
|---|---|---|
| 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 for sending emails and SMS Type follows RFC 4646, for example, en stands for English. For more details, see Language Type Definition |
| ExtraJson | FString | Includes compliance status with minor certification status |
Return Value
- Returns
trueif the user profile configuration is valid - Returns
falseif 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 succ = UINTLSDKAPI::ComplianceInitWithParams(GameId, OpenId, Token, ChannelId, LangType);