Set custom account information (SetAccountInfo) [Player Network SDK only]
[Player Network SDK only] Set custom account information.
note
To create a custom account, first call SetAccountInfo to set the required information.This method does not have a callback.
If you call other self-built account methods without first calling this method, an error message will be printed in the console.
Supported platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void SetAccountInfo(string channel, int channelId, string langType, int accountPlatType, string extraJson = "{}");
static void SetAccountInfo(const std::string &channel, int32_t channelid, const std::string &lang_type, int32_t account_plat_type,
const std::string &extra_json = "{}");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| channel | string | Channel for custom accounts, related to platform accounts such as CustomAccount, EGame, etc |
| channelId | int | ACCOUNT_PLAT_TYPE assigned by the Player Network console |
| langType | string | Language type (RFC 4646), e.g., "en".Defines the language for sending emails and SMS See Language Type Definition for more information. |
| accountPlatType | int | ACCOUNT_PLAT_TYPE assigned by the Player Network console |
| extraJson | int | Extended information |
| Parameters | Type | Description |
|---|---|---|
| channel | std::string See EINTLLoginChannel for reference | Channel for custom accounts, related to platform accounts such as CustomAccount, EGame, etc |
| channelid | int32_t | ACCOUNT_PLAT_TYPE assigned by the Player Network console |
| lang_type | std::string | Language type (RFC 4646), e.g.: "en".Defines the language for sending emails and SMS See Language Type Definition for more information. |
| account_plat_type | int32 | ACCOUNT_PLAT_TYPE assigned by the Player Network console |
| extra_json | std::string | Extended information |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().SetAccountInfo("Self", 1, "en", 1);
GUA_NAMESPACE::GUAAccountService::SetAccountInfo("Self", 1, "en", 1);