Skip to main content

ComplianceInitWithParams

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see ComplianceInitWithParams for Unreal Engine SDK.

Set user login state and configuration information, supports iTOP/MSDKV5/Player Network SDK accounts.

Function definition

public static bool ComplianceInitWithParams(string gameID, string openID, string token, int channelID, string langType)

Input parameters

NameTypeDescription
gameIDstringGame ID configuration of iTOP/MSDKV5/Player Network SDK, obtained from the configuration file
openIDstringOpenID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
tokenstringToken for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
channelIDintChannel ID for iTOP/MSDK/Player Network SDK, obtained from loginresult or authresult
langTypestringLanguage used when sending emails and SMS messages
Follows RFC 4646 format, such as en for English, see Language Type Definition for details

Return value

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

Code sample

bool succ = INTLAPI.ComplianceInitWithParams(gameID, openID, token, channelID, langType);