TransferState

public abstract class TransferState extends Object

Binary upload/download operation status

Constructors

Name Description
public TransferState()

Methods

offset

public abstract int offset()

Current transferred offset value in bytes.

ReturnValue

Name Description
int

total

public abstract int total()

Total download size in bytes.

ReturnValue

Name Description
int

done

public abstract boolean done()

Returns if download is complete.

ReturnValue

Name Description
boolean

create

public static TransferState create(int progress, int total)

Parameters

Name Description
int progress
int total

ReturnValue

Name Description
TransferState