Class AppRegionInfo
- Namespace
- VpnHood.AppLib.App
- Assembly
- VpnHood.AppLib.App.dll
Provides the app's region, which picks the region's defaults, such as whether usage data waits for a yes first, and the ads' countries: the device's own (CurrentRegion) until it is set.
public static class AppRegionInfo
- Inheritance
-
AppRegionInfo
- Inherited Members
Remarks
The app sets it at its start and on each settings change from the country a VPN server last reported; it never looks a country up from an address.
Properties
CurrentCountryCode
Gets CurrentRegion as a country, by its two-letter code, or null for a region that is no country, such as 419, Latin America, which has no flag and no name to show.
public static string? CurrentCountryCode { get; }
Property Value
CurrentRegion
Gets or sets the app's region: the one last set, else the device's.
public static RegionInfo CurrentRegion { get; set; }