Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public static final class BackgroundTransfer.Transfer

  1. Object
  2. BackgroundTransfer.Transfer
A transfer started by #download or #upload.

Methods

public String getUrl()The remote URL.
public String getPath()The local file path.
public boolean isUpload()True for an upload.
public boolean isDone()True once the transfer completed, failed or was cancelled.
public void cancel()Cancels the transfer.

Inherited methods

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.