TTLServiceDownloadStatusResponse Class Reference
Inherits from | NSObject |
---|---|
Declared in | TTLServiceEventDelegate.h |
Overview
Encapsulates the current progress after calling [TTLServiceClient startSyncForDevice:].
See [TTLServiceEventDelegate onDownloadStatusUpdate:response:] and TTLServiceDownloadProgressStatus
progressState
The state of the download which will be one the options of TTLServiceDownloadProgressStatus
@property (nonatomic) TTLServiceDownloadProgressStatus progressState
Discussion
The state of the download which will be one the options of TTLServiceDownloadProgressStatus
Note, the states TTLServiceDownloadSuccessful
or TTLServiceDownloadFailed
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 SDK and the progress cannot be monitored explicitly.
However, when all upload data arrived at the backend successfully [TTLServiceEventDelegate onDownloadStatusUpdate:response:]
will be called with the progressState TTLServiceUploadSuccessful
Declared In
TTLServiceEventDelegate.h
progress
Indicates the amount of progress depending on the value progressState
@property (nonatomic) NSNumber *progress
Discussion
Indicates the amount of progress depending on the value progressState
In case
progressState
isTTLServiceDownloadStarted
,progress
contains the maximum number of bytes that are going to be sent from the LINK device to the smart phone. This information can be used to initialize a progress bar.In case
progressState
isTTLServiceDownloadProgress
,progress
contains the current value of transferred bytes with the last transmission. This value is NOT the cumulated progress - this has to be handled by the custom app itself.In case
progressState
isTTLServiceDownloadSuccessful
,TTLServiceDownloadFailed
orTTLServiceUploadSuccessful
the progress isnil
.
Declared In
TTLServiceEventDelegate.h