GenerateTransferCode [Player Network SDK Only]
[Player Network SDK Only] Generates transfer code for the logged in account.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void GenerateTransferCode(string password);
static void GenerateTransferCode(const std::string &password);
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description |
|---|---|---|
| password | string | The password when generating the transfer code |
| Parameter | Type | Description |
|---|---|---|
| password | std::string | The password when generating the transfer code |
Callback Processing
The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents.
The callback methodID is GUA_ACCOUNT_GENERATE_TRANSFER_CODE.
The callback event is OnLoginResultNotify.
The callback methodID is kMethodIDAccountGenerateTransferCode.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().GenerateTransferCode("password");
GUA_NAMESPACE::GUAAccountService::GenerateTransferCode("Password");