ComplianceSetUserProfile (Deprecated since V1.16, use ComplianceInitWithParams instead)
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ComplianceSetUserProfile for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see ComplianceSetUserProfile for Unreal Engine SDK.
Set user login state and configuration information, supports iTOP/MSDKV5/Player Network SDK accounts.
Function definition
public static bool ComplianceSetUserProfile(string gameID, string openID, string token, int channelID, string 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 | string | Game ID configuration of iTOP/MSDKV5/Player Network SDK, obtained from the configuration file |
openID | string | OpenID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
token | string | Token for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
channelID | int | ChannelID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult |
region | string | 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 = INTLAPI.ComplianceSetUserProfile(gameID, openID, token, channelID, region);