getCountryMapCoverage static method
- String code
Get the map coverage for the country specified by ISO 3166-1 alpha-3 country code.
This function checks the map coverage status using only the information available on the device. No server connection is performed. This check is performed fast
Parameters
- IN code ISO 3166-1 alpha-3 country code
Returns
- MapCoverage.coverageOffline - Entire country map is available on the device.
- MapCoverage.coverageOnlineNoData - Country map is available but not all tiles are on the device.
- MapCoverage.coverageOnlineTile - Data covered by the online cache available on the device. No connection required.
- MapCoverage.coverageUnknown - No map coverage available on device and cannot determine if there exists content on the server.
Throws
- An exception if it fails.
Implementation
static MapCoverage getCountryMapCoverage(final String code) {
final OperationResult resultString = objectMethod(
0,
'MapDetails',
'getCountryMapCoverage',
args: code,
);
return MapCoverageExtension.fromId(resultString['result']);
}