public class

TileDownloadListener

extends Object
java.lang.Object
   ↳ com.carto.datasources.TileDownloadListener

Class Overview

Listener for tile downloader.

Summary

Public Constructors
TileDownloadListener()
Public Methods
synchronized void delete()
void onDownloadCompleted()
Listener method that is called when downloading has finished.
void onDownloadFailed(MapTile tile)
Listener method that is called when a tile download fails.
void onDownloadProgress(float progress)
Listener method that is called to report about download progress.
void onDownloadStarting(int tileCount)
Listener method that is called before download has actually started to report the total tile count.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public TileDownloadListener ()

Public Methods

public synchronized void delete ()

public void onDownloadCompleted ()

Listener method that is called when downloading has finished.

public void onDownloadFailed (MapTile tile)

Listener method that is called when a tile download fails.

Parameters
tile The tile that could not be downloaded.

public void onDownloadProgress (float progress)

Listener method that is called to report about download progress.

Parameters
progress The progress of the download, from 0 to 100.

public void onDownloadStarting (int tileCount)

Listener method that is called before download has actually started to report the total tile count.

Parameters
tileCount The number of tiles that will be downloaded (if not already in the cache).