Package globus.glmap

Interface GLMapManager.DownloadCallback

Enclosing class:
GLMapManager

public static interface GLMapManager.DownloadCallback
Callbacks for download task
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when task is finished
    void
    onProgress(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 size
      downloadedSize - downloaded size
      downloadSpeed - speed of transfer
    • onFinished

      void onFinished(@Nullable GLMapError error)
      Called when task is finished
      Parameters:
      error - error or nil