Skip to main content

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

Supports Android, iOS, Windows platform.

Function Definition

void SetAccountInfo(string channel, int channelId, string langType, int accountPlatType, string extraJson = "{}");

Input Parameters

ParametersTypeDescription
channelstringChannel for custom accounts, related to platform accounts such as CustomAccount, EGame, etc
channelIdintACCOUNT_PLAT_TYPE assigned by the Player Network console
langTypestringLanguage type (RFC 4646), e.g., "en".Defines the language for sending emails and SMS
See Language Type Definition for more information.
accountPlatTypeintACCOUNT_PLAT_TYPE assigned by the Player Network console
extraJsonintExtended information

Code Example

UnionAdapterAPI.GetAccountService().SetAccountInfo("Self", 1, "en", 1);