Modify Personal Information (ModifyProfile) [Player Network SDK Only]
[Player Network SDK Only] Modify personal information.
Supported Platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void ModifyProfile(GUAAccountProfile profileJson);
static void ModifyProfile(const GUAAccountProfile &profile);
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| profile | GUAAccountProfile | Account Personal Information |
| Parameters | Type | Description |
|---|---|---|
| userProfile | GUAAccountProfile | Account Personal Information |
Callback Handling
The callback handler interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_MODIFY_PROFILE.
The callback event is OnAccountResultNotify. The callback ID is kMethodIDAccountModifyProfile.
Code example
- Unity
- Unreal Engine
GUAAccountProfile accountProfile = new GUAAccountProfile();
// TODO: Set accountProfile
UnionAdapterAPI.GetAccountService().ModifyProfile(accountProfile);
GUA_NAMESPACE::GUAAccountProfile AccountProfile;
// TODO: Set AccountProfile
GUA_NAMESPACE::GUAAccountService::ModifyProfile(AccountProfile);