mapbox-plugin-offline

//mapboxpluginoffline/io.github.xit0c.mapboxpluginoffline.utils/OfflineUtils

OfflineUtils

[androidJvm]
object OfflineUtils

This object only purpose is to provide utility methods.

Functions

Name Summary
convertRegionName [androidJvm]
fun convertRegionName(regionName: ByteArray?): String?
Converts regionName to a plain String. Useful to retrieve the name of a region from metadata.
[androidJvm]
fun convertRegionName(regionName: String): ByteArray?
Converts regionName to a ByteArray. Useful to store the name of a region as metadata.
getCompletionPercentage [androidJvm]
fun getCompletionPercentage(completedResourceCount: Long, requiredResourceCount: Long): Int
Returns the resources completion percentage.
getRegionIdFromIntent [androidJvm]
fun getRegionIdFromIntent(intent: Intent): Long?
Returns the region id contained in intent.extras, if any.