Skip to main content

Update User Information (UpdateUserInfo)

AndroidiOSWindows
If you are using Unreal Engine, please refer to Unreal Engine SDK's UpdateUserInfo here.

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

Function Definition

public static void UpdateUserInfo(INTLCustomerUserProfile userProfile);

Parameter Instructions

NameTypeExplanation
userProfileINTLCustomerUserProfileCustomer service module request structure, mainly includes important parameters such as language type and channel identifier.

Observers

The callback handling interface is CustomerResultObserver.
The callback data structure is CustomerResult.

The callback ID is INTL_CUSTOMER_UPDATE_USER_INFO.

Code example

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);