kmzFile

suspend fun kmzFile(context: Context, permanent: Boolean): File

Gets the KMZ file path. If it has never been loaded, it gets loaded from the server. Otherwise, it gets loaded from cache.

Author

Arnau Mora

Since

20210416

Parameters

context

The context to run from.

permanent

If true, the KMZ will get stored in the data directory, if false, it will be cached.

Throws

When kmzPath is null, so a File can't be retrieved.

VolleyError

When there's an exception while downloading the KMZ file.