public static class ServiceClientCallback.DownloadStatusResponse extends Object
ServiceClient.startSync()
.Modifier and Type | Field and Description |
---|---|
ServiceClientCallback.DownloadProgressState |
downloadProgressState |
Integer |
progress
In case
downloadProgressState is ServiceClientCallback.DownloadProgressState.STARTED the progress
is the maximum number of bytes that are going to be sent from the dongle to the smartphone. |
Constructor and Description |
---|
DownloadStatusResponse(ServiceClientCallback.DownloadProgressState progressState,
Integer progress) |
public final ServiceClientCallback.DownloadProgressState downloadProgressState
public final Integer progress
downloadProgressState
is ServiceClientCallback.DownloadProgressState.STARTED
the progress
is the maximum number of bytes that are going to be sent from the dongle to the smartphone. This information
can be used to initialize a progress bar.
In case downloadProgressState
is ServiceClientCallback.DownloadProgressState.PROGRESS
the progress
is the current value of transfered bytes with the last transmission. This value is NOT the cumulated progress - this has to be handled
by the custom app itself.
In case downloadProgressState
is ServiceClientCallback.DownloadProgressState.FAILED
or ServiceClientCallback.DownloadProgressState.FINISHED
the progress
is null
.
Note, the states ServiceClientCallback.DownloadProgressState.FAILED
or ServiceClientCallback.DownloadProgressState.FINISHED
do NOT indicate that the upload to the server has finished or failed. The process of uploading
the driving data to the server is handled transparently by the Core and cannot be monitored explicitly.public DownloadStatusResponse(ServiceClientCallback.DownloadProgressState progressState, Integer progress)