Package globus.glmap
Interface GLMapManager.DownloadCallback
- Enclosing class:
- GLMapManager
public static interface GLMapManager.DownloadCallback
Callbacks for download task
-
Method Summary
Modifier and TypeMethodDescriptionvoidonFinished(GLMapError error) Called when task is finishedvoidonProgress(long totalSize, long downloadedSize, double downloadSpeed) Periodically called to report progress
-
Method Details
-
onProgress
void onProgress(long totalSize, long downloadedSize, double downloadSpeed) Periodically called to report progress- Parameters:
totalSize- total transfer sizedownloadedSize- downloaded sizedownloadSpeed- speed of transfer
-
onFinished
Called when task is finished- Parameters:
error- error or nil
-