Package org.briarproject.onionwrapper
Interface LocationUtils
-
@NotNullByDefault public interface LocationUtils
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static java.lang.StringgetCountryDisplayName(java.lang.String isoCode)Returns the name of the country for display in the UI or the isoCode if none could be found.java.lang.StringgetCurrentCountry()Get the country the device is currently located in, or "" if it cannot be determined.
-
-
-
Method Detail
-
getCurrentCountry
java.lang.String getCurrentCountry()
Get the country the device is currently located in, or "" if it cannot be determined.The country codes are formatted upper-case and as per ISO 3166-1 alpha 2.
-
getCountryDisplayName
static java.lang.String getCountryDisplayName(java.lang.String isoCode)
Returns the name of the country for display in the UI or the isoCode if none could be found.- Parameters:
isoCode- The result fromgetCurrentCountry().
-
-