-
public interface IFilesystemCacheRepresents a write-only interface into a file system cache.
-
-
Method Summary
Modifier and Type Method Description abstract booleansaveFile(ITileSource pTileSourceInfo, long pMapTileIndex, InputStream pStream, Long pExpirationTime)Save an InputStream as the specified tile in the file system cache for the specified tilesource. abstract booleanexists(ITileSource pTileSourceInfo, long pMapTileIndex)return true if the map file for download already exists abstract voidonDetach()Used when the map engine is shutdown, use it to perform any clean up activities and to terminateany background threads abstract booleanremove(ITileSource tileSource, long pMapTileIndex)Removes a tile from the cache, see issuehttps://github. abstract LonggetExpirationTimestamp(ITileSource pTileSource, long pMapTileIndex)Gets the cache expiration timestamp of a tile abstract DrawableloadTile(ITileSource pTileSource, long pMapTileIndex)Gets the tile drawable -
-
Method Detail
-
saveFile
abstract boolean saveFile(ITileSource pTileSourceInfo, long pMapTileIndex, InputStream pStream, Long pExpirationTime)
Save an InputStream as the specified tile in the file system cache for the specified tilesource.
- Parameters:
pTileSourceInfo- a tile sourcepMapTileIndex- a tilepStream- an InputStream
-
exists
abstract boolean exists(ITileSource pTileSourceInfo, long pMapTileIndex)
return true if the map file for download already exists
-
onDetach
abstract void onDetach()
Used when the map engine is shutdown, use it to perform any clean up activities and to terminateany background threads
-
remove
abstract boolean remove(ITileSource tileSource, long pMapTileIndex)
Removes a tile from the cache, see issuehttps://github.com/osmdroid/osmdroid/issues/426
-
getExpirationTimestamp
abstract Long getExpirationTimestamp(ITileSource pTileSource, long pMapTileIndex)
Gets the cache expiration timestamp of a tile
-
loadTile
abstract Drawable loadTile(ITileSource pTileSource, long pMapTileIndex)
Gets the tile drawable
-
-
-
-