Skip to main content

UpdateUserInfo

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

Update user info, this interface can only be called after receiving the asynchronous callback of InitCustomer.

Function definition

public static void UpdateUserInfo(INTLCustomerUserProfile userProfile);

Input parameters

NameTypeDescription
userProfileINTLCustomerUserProfileCustomer service module request body, mainly including important input parameters such as language type and channel ID

Callback Processing

The callback processing API is CustomerResultObserver.
The callback data structure is CustomerResult.

The callback methodID is INTL_CUSTOMER_UPDATE_USER_INFO.

Code sample

var userProfile = new INTLCustomerUserProfile
{
LangType = "zh-Hans",
Sign = "YOUR_SIGN",
OpenId = "openid",
GameLevel = "1",
NickName = "player1",
RoleId = "",
AreaId = "",
ZoneId = "",
ServerId = "",
Region = "",
PictureUrl = "https://head.xxx.com/xx.png",
CustomParam1 = "custom parameter",
CustomParam2 = "custom parameter",
CustomParam3 = "custom parameter",
CustomParam4 = "custom parameter",
CustomParam5 = "custom parameter"
};
INTLAPI.UpdateUserInfo(userProfile);