Interface UploadStatusCallback
-
public interface UploadStatusCallbackReports status information when uploading an application.
-
-
Field Summary
Fields Modifier and Type Field Description static UploadStatusCallbackNONEEmpty implementation
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonCheckResources()Called after the /resources call is made.voidonError(String description)voidonMatchedFileNames(Set<String> matchedFileNames)Called after the files to be uploaded have been identified.voidonProcessMatchedResources(int length)Called after the data to be uploaded has been processedbooleanonProgress(String status)Called during asynchronous upload process.
-
-
-
Field Detail
-
NONE
static final UploadStatusCallback NONE
Empty implementation
-
-
Method Detail
-
onCheckResources
void onCheckResources()
Called after the /resources call is made.
-
onMatchedFileNames
void onMatchedFileNames(Set<String> matchedFileNames)
Called after the files to be uploaded have been identified.- Parameters:
matchedFileNames- the files to be uploaded
-
onProcessMatchedResources
void onProcessMatchedResources(int length)
Called after the data to be uploaded has been processed- Parameters:
length- the size of the upload data (before compression)
-
onProgress
boolean onProgress(String status)
Called during asynchronous upload process. Implementation can return true to unsubscribe from progress update reports. This is useful if the caller want to unblock the thread that initiated the upload. Note, however, that the upload job that has been asynchronously started will continue to execute on the server.- Parameters:
status- string such as "queued", "finished"- Returns:
- true to unsubscribe from update report
-
onError
void onError(String description)
-
-