Skip to main content

Update Country List (UpdateCountryList)

AndroidiOSPC

If you are using Unreal Engine, please refer to UpdateCountryList in the Unreal Engine SDK.

Set the list of countries or regions to be displayed and those not to be displayed on the select country list page.

This interface is only applicable to V1.07 and above. For versions prior to V1.07, see LEVEL INFINITE PASS.

The country code 999 represents other countries or regions.

Function definition​

public static void UpdateCountryList(string[] allowList, string[] blockList)

Parameter Instructions​

ParametersTypeExplanation
allowListstring[]List of countries or regions allowed to be displayed.
User country or region code, referencing the ISO 3166-1 standard; for example, "400" represents Jordan.
blockListstring[]List of countries or regions not allowed to be displayed.
User country or region code, referencing the ISO 3166-1 standard; for example, "400" represents Jordan.

Code Sample​

string[] allowArray = new string[] {"496","400"};
string[] blockArray = new string[] {"400"};

LevelInfinite.UpdateCountryList(allowArray,blockArray);