Class BackgroundTransfer.Transfer

java.lang.Object
com.codename1.io.BackgroundTransfer.Transfer
Enclosing class:
BackgroundTransfer

public static final class BackgroundTransfer.Transfer extends Object
A transfer started by #download or #upload.
  • Method Details

    • getUrl

      public String getUrl()

      The remote URL.

      Returns

      the URL

    • getPath

      public String getPath()

      The local file path.

      Returns

      the FileSystemStorage path

    • isUpload

      public boolean isUpload()

      True for an upload.

      Returns

      true for an upload, false for a download

    • isDone

      public boolean isDone()

      True once the transfer completed, failed or was cancelled.

      Returns

      true when finished

    • cancel

      public void cancel()
      Cancels the transfer. The listener gets onComplete with false.