Interface LocationUtils


  • @NotNullByDefault
    public interface LocationUtils
    • 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 from getCurrentCountry().