public interface IFilesystemCache
Modifier and Type | Method and Description |
---|---|
boolean |
exists(ITileSource pTileSourceInfo,
long pMapTileIndex)
return true if the map file for download already exists
|
Long |
getExpirationTimestamp(ITileSource pTileSource,
long pMapTileIndex)
Gets the cache expiration timestamp of a tile
|
Drawable |
loadTile(ITileSource pTileSource,
long pMapTileIndex)
Gets the tile drawable
|
void |
onDetach()
Used when the map engine is shutdown, use it to perform any clean up activities and to terminate
any background threads
|
boolean |
remove(ITileSource tileSource,
long pMapTileIndex)
Removes a tile from the cache, see issue
https://github.com/osmdroid/osmdroid/issues/426
|
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 tile
source.
|
boolean saveFile(ITileSource pTileSourceInfo, long pMapTileIndex, InputStream pStream, Long pExpirationTime)
pTileSourceInfo
- a tile sourcepMapTileIndex
- a tilepStream
- an InputStreamboolean exists(ITileSource pTileSourceInfo, long pMapTileIndex)
void onDetach()
boolean remove(ITileSource tileSource, long pMapTileIndex)
Long getExpirationTimestamp(ITileSource pTileSource, long pMapTileIndex)
Drawable loadTile(ITileSource pTileSource, long pMapTileIndex) throws Exception
Exception