Generate Transfer Code [Player Network SDK Only]
[Player Network SDK Only] Generate a transfer code for the logged-in account.
Supported Platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| password | string | Password for generating the transfer code |
| Parameters | Type | Description |
|---|---|---|
| password | std::string | Password for generating the transfer code |
Callback Handling
The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_RED_TRANSFER_CODE.
The callback event is OnLoginResultNotify. The callback ID is kMethodIDAccountGenerateTransferCode.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().GenerateTransferCode("password");
GUA_NAMESPACE::GUAAccountService::GenerateTransferCode("Password");