Skip to main content

UpdateCountryList

AndroidiOSWindows
If you were looking for the method for use with Unity, see UpdateCountryList for Unity SDK.

Configure the countries/regions to be displayed or hidden on the country selection page.
This interface is only available for V1.07 and later, in case of versions earlier than V1.07, see LEVEL INFINITE PASS.
Among them, the 999 country code represents other countries and regions.

Function definition

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

Input parameters

ParameterTypeDescription
allowListTArray<FString> Countries/regions allowed to be displayed.
ISO 3166-1 numeric code for country or region. For example, 400 for Jordan.
blockListTArray<FString> Countries/regions blocked from being displayed.
ISO 3166-1 numeric code for country or region. For example, 400 for 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);