commonMain.earth.worldwind.util.CacheTileFactory.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of worldwind-jvm Show documentation
Show all versions of worldwind-jvm Show documentation
The WorldWind Kotlin SDK (WWK) includes the library, examples and tutorials for building multiplatform 3D virtual globe applications for Android, Web and Java.
The newest version!
package earth.worldwind.util
import kotlinx.datetime.Instant
/**
* Tile factory with cache support.
*/
interface CacheTileFactory : TileFactory {
/**
* Unique key of this layer in the cache
*/
val contentKey: String
/**
* Path to cache content storage root
*/
val contentPath: String
/**
* Last update date of cache content
*/
val lastUpdateDate: Instant
/**
* Estimated cache content size in bytes
*/
suspend fun contentSize(): Long
/**
* Deletes all tiles from current cache content.
*
* @param deleteMetadata also delete cache metadata
* @throws IllegalStateException In case of read-only database.
*/
suspend fun clearContent(deleteMetadata: Boolean)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy