ComplianceSetUserProfile (Deprecated since V1.16, use ComplianceInitWithParams instead)
AndroidiOSWindows
If you were looking for the method for use with Unity, see ComplianceSetUserProfile for Unity SDK.
If you were looking for the method for use with Unity, see ComplianceSetUserProfile for Unity SDK.
Set user login state and configuration information, supports iTOP/MSDKV5/Player Network SDK accounts.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static bool ComplianceSetUserProfile(
const FString GameId,
const FString OpenId,
const FString Token,
const int32 ChannelId,
const FString region);
Input parameters
caution
The country or region code of a user must strictly follow the ISO 3166-1 standard. For example, write 004 instead of 4 for Afghanistan.
Name | Type | Description |
---|---|---|
GameId | FString | Game ID configuration of iTOP/MSDKV5/Player Network SDK, obtained from the configuration file |
OpenId | FString | OpenID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
Token | FString | Token for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
ChannelId | int32 | ChannelID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
Region | FString | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria |
Return value
- Returns
true
if user profile is valid - Returns
false
if user profile is invalid
Code sample
bool succ = UINTLSDKAPI::ComplianceSetUserProfile(gameID, openID, token, channelID, region);