Skip to main content

Update User Information (UpdateUserInfo)

AndroidiOSPC

If you are using Unreal Engine, please refer to UpdateUserInfo in the Unreal Engine SDK.

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