Skip to main content

Update Country List (UpdateCountryList)

AndroidiOSWindows
If you are using the Unity engine, please refer to Unity SDK's UpdateCountryList here.

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

UFUNCTION(BlueprintCallable, Category = "LevelInfinite")
static void UpdateCountryList(const TArray<FString>& allowList,const TArray<FString>& blockList);

Parameter Instructions

ParametersTypeExplanation
allowListTArray<FString> 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.
blockListTArray<FString> 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

TArray<FString> allowList;
allowList.Add(TEXT("496"));
allowList.Add(TEXT("400"));
TArray<FString> blockList;
blockList.Add(TEXT("400"))

ULevelInfiniteAPI::UpdateCountryList(allowList,blockList);