NOTICE: Google Maps Platform gaming services is deprecated as of October 18, 2021. Current users will have continued access until December 31, 2022. During this time, we will continue to provide support and fixes to major bugs and outages. See the Gaming Services Transition Guide for resources to help you plan the next steps for your projects.
Stay organized with collections Save and categorize content based on your preferences.

Google.Maps.TileLoading.ICountryProvider

Interface for classes that provide the user's country.

Summary

Tests that can't depend directly on Unity should provide a fake implementation of this interface instead of subclassing CountryProvider.

Inheritance

Direct Known Subclasses:Google.Maps.CountryProvider

Public functions

GetCountry()
string
Gets the country code (in ISO 3166-1 alpha-2 format) for the user's country.

Public functions

GetCountry

string GetCountry()

Gets the country code (in ISO 3166-1 alpha-2 format) for the user's country.

Caution: When this method returns null, or an empty string, or CountryProvider.DefaultCountryCode, then the SDK makes no assumptions about the user's location. This can lead to poorly localized or missing names.