Skip to main content

TransferAccount [Player Network SDK Only]

[Player Network SDK Only] Transfers account data from other devices to the current account through the transfer code.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

void TransferAccount(string transferCode, string password);

Input Parameters

ParameterTypeDescription
transferCodestringTransfer code which specifies the account to be transferred
passwordstringThe password set when generating the transfer code

Callback Processing

The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.

The callback event is LoginBaseResultEvents. The callback methodID is GUA_ACCOUNT_TRANSFER_ACCOUNT.

Code Sample

UnionAdapterAPI.GetAccountService().TransferAccount("transferCode", "password");